@Test public void messageTest() { StreamingException exp = new StreamingException(ErrorCode.SEMANTICANALYZE_EXPRESSION_DATATYPE_COMPARE, String.class.getName(), Integer.class.getName()); System.out.println(exp.getMessage()); assertTrue(exp.getErrorCode().equals(ErrorCode.SEMANTICANALYZE_EXPRESSION_DATATYPE_COMPARE)); }
public ErrorCode getErrorCode() { return errorCode; }
StreamingException extends Exception { public ErrorCode getErrorCode() { return errorCode; } }
StreamingException extends Exception { public ErrorCode getErrorCode() { return errorCode; } StreamingException(String message);  StreamingException(String message, Throwable cause);  StreamingException(ErrorCode code, String... errorArgs);  StreamingException(Throwable cause, ErrorCode code, String... errorArgs); protected  StreamingException(Throwable cause, String fullMessage, ErrorCode code); }
StreamingException extends Exception { public ErrorCode getErrorCode() { return errorCode; } StreamingException(String message);  StreamingException(String message, Throwable cause);  StreamingException(ErrorCode code, String... errorArgs);  StreamingException(Throwable cause, ErrorCode code, String... errorArgs); protected  StreamingException(Throwable cause, String fullMessage, ErrorCode code); static StreamingException wrapException(Exception exception); ErrorCode getErrorCode(); }
StreamingException extends Exception { public ErrorCode getErrorCode() { return errorCode; } StreamingException(String message);  StreamingException(String message, Throwable cause);  StreamingException(ErrorCode code, String... errorArgs);  StreamingException(Throwable cause, ErrorCode code, String... errorArgs); protected  StreamingException(Throwable cause, String fullMessage, ErrorCode code); static StreamingException wrapException(Exception exception); ErrorCode getErrorCode();  }