/** * Copies the stack trace of the exception passed in parameter, and sets the port which caused the exception. * * @param e the exception we need to copy the stack trace from. * @param port the selected port which was the cause of the exception. */ public AbstractPortException(Exception e, int port) { setStackTrace(e.getStackTrace()); this.port = port; }