/** * Constructor * @param errorCode Error code * @param errorDescription Error description, i.e. a human-readable explanation of this error * @param errorURI Error URI that leads to further details about this error * @param httpStatus HTTP status code to represent error as a HTTP response */ public ErrorResponseException(String errorCode, String errorDescription, String errorURI, int httpStatus) { super(buildExceptionMessage(errorCode, errorDescription)); this.errorCode = errorCode; this.errorDescription = errorDescription; this.errorURI = errorURI; this.httpStatus = httpStatus; }