/** * Constructs a new exception with the given cause, reason, failed line, and appends the specified * reason to the message key. * * @param reason the reason * @param e the cause * @param line the line on which the file parsing failed */ public BulkUserImportException(Reason reason, Exception cause, int lineNumber) { super("Parsing failed at line " + lineNumber, cause, new Object[] {"" + lineNumber}); bean.setReason(reason); setMessageKey(initMessageKey(reason)); }
/** * Constructs a new exception with the given cause, reason, and appends the specified reason to * the message key. * * @param reason the reason * @param cause the cause */ public BulkUserImportException(Reason reason, Exception cause) { super(reason.toString(), cause); bean.setReason(reason); setMessageKey(initMessageKey(reason)); }
@Override public BulkUserImportExceptionBean getFaultInfo() { return new BulkUserImportExceptionBean(super.getFaultInfo(), bean.getReason()); }