public void throwException(String message, Throwable parent) { OException exc = newException(message, parent); throw exc; }
public void throwException(Throwable parent) { throwException(this.description, parent); }
@Override public final String getMessage() { final StringBuilder builder = new StringBuilder(super.getMessage()); if (dbName != null) { builder.append("\r\n\t").append("DB name=\"").append(dbName).append("\""); } if (componentName != null) { builder.append("\r\n\t").append("Component Name=\"").append(componentName).append("\""); } if (errorCode != null) { builder.append("\r\n\t").append("Error Code=\"").append(errorCode.getCode()).append("\""); } return builder.toString(); } }
public void throwException() { throwException(this.description, null); }
public void throwException(String message) { throwException(message, null); }
} catch (ParseException e) { OCommandSQLParsingException ex = new OCommandSQLParsingException(e, queryText); OErrorCode.QUERY_PARSE_ERROR.throwException(ex.getMessage(), ex);