001package jmri.jmrit.logixng; 002 003import jmri.JmriException; 004 005/** 006 * This exception is thrown when the current excection of a ConditionalNG 007 * should be aborted. 008 * 009 * @author Daniel Bergqvist 2020 010 */ 011public class AbortConditionalNGExecutionException extends JmriException { 012 013 private final MaleSocket _maleSocket; 014 015 /** 016 * Constructs an instance of <code>AbortConditionalNGExecutionException</code> 017 * with a cause exception. 018 * @param maleSocket the male socket where the exception is thrown 019 * @param e the cause of this exception 020 */ 021 public AbortConditionalNGExecutionException(MaleSocket maleSocket, Exception e) { 022 super(e); 023 _maleSocket = maleSocket; 024 } 025 026 public MaleSocket getMaleSocket() { 027 return _maleSocket; 028 } 029}