public static ErrorType getErrorTypeRequiredFieldMissingCodeInvalidRoomTypeCode(String msg) { ErrorType error = getErrorTypeRequiredFieldMissing(); error.setCode(ConstantsRateGain.Error.Code.INVALID_ROOM_TYPE_CODE); if (msg != null) { error.setValue(msg); } return error; }
public static ErrorType getErrorTypeProccessingExceptionCodeNoHotelMatchFound(final String msg) { ErrorType error = getErrorTypeProcessingException(); error.setCode(ConstantsRateGain.Error.Code.NO_HOTEL_MATCH_FOUND); if (msg != null) { error.setValue(msg); } return error; }
public static ErrorType getErrorTypeNoImplementationCodeInvalidPropretyCode(final String msg) { final ErrorType error = getErrorTypeNoImplemetantation(); error.setCode(ConstantsRateGain.Error.Code.INVALID_PROPERTY_CODE); if (msg != null) { error.setValue(msg); } return error; }
/** * @return <code>ErrorType</code> Object with error type {@link * ConstantsRateGain.Error.Type#AUTHENTICATION} and error code {@link * ConstantsRateGain.Error.Code#REQUIRED_FIELD_MISSING}. * @see #getErrorTypeAuthentication() */ public static ErrorType getErrorTypeAuthenticationCodePasswordInvalid(final String msg) { ErrorType error = getErrorTypeAuthentication(); error.setCode(ConstantsRateGain.Error.Code.PASSWORD_INVALID); if (msg != null) { error.setValue(msg); } return error; }
public static ErrorType getErrorTypeProcessingExceptionCodeUnableToProcess(final String msg) { final ErrorType error = getErrorTypeProcessingException(); error.setCode(ConstantsRateGain.Error.Code.UNABLE_TO_PROCESS); if (msg != null) { error.setValue(msg); } return error; }
public static ErrorType getErrorTypeProcessingExceptionCodeInvalidValue(final String msg) { final ErrorType error = getErrorTypeProcessingException(); error.setCode(ConstantsRateGain.Error.Code.INVALID_VALUE); if (msg != null) { error.setValue(msg); } return error; }
public static ErrorType getErrorTypeNoImplementationCodeInvalidCurrency(final String msg) { final ErrorType error = getErrorTypeNoImplemetantation(); error.setCode(ConstantsRateGain.Error.Code.INVALID_CURRENCY); if (msg != null) { error.setValue(msg); } return error; }
public static ErrorType getErrorTypeApplicationError() { ErrorType error = new ErrorType(); error.setType(ConstantsRateGain.Error.Type.APPLICATION_ERROR); return error; }
public static ErrorType getErrorTypeRequiredFieldMissing() { ErrorType error = new ErrorType(); error.setType(ConstantsRateGain.Error.Type.REQUIRED_FIELD_MISSING); return error; }
public static ErrorType getErrorTypeAuthenticationModel() { ErrorType error = new ErrorType(); error.setType(ConstantsRateGain.Error.Type.AUTHENTICATION_MODEL); return error; }
/** * @return <code>ErrorType</code> Object with type {@link ConstantsRateGain.Error.Type#UNKNOWN} * without error code. */ public static ErrorType getErrorTypeUnknown() { ErrorType error = new ErrorType(); error.setType(ConstantsRateGain.Error.Type.UNKNOWN); return error; }
/** * @return <code>ErrorType</code> Object with error type {@link * ConstantsRateGain.Error.Type#UNKNOWN} and error code {@link * ConstantsRateGain.Error.Code#UNDETERMINED_ERROR}. * @see #getErrorTypeUnknown() */ public static ErrorType getErrorTypeUnknownCodeUndetermined() { ErrorType error = getErrorTypeUnknown(); error.setCode(ConstantsRateGain.Error.Code.UNDETERMINED_ERROR); return error; }
public static ErrorType getErrorTypeApplicationErrorCodeUndeterminedError() { ErrorType error = getErrorTypeApplicationError(); error.setCode(ConstantsRateGain.Error.Code.UNDETERMINED_ERROR); return error; }
public static ErrorType getErrorTypeAuthenticationModelCodeRequiredFieldMissing() { ErrorType error = getErrorTypeAuthenticationModel(); error.setCode(ConstantsRateGain.Error.Code.REQUIRED_FIELD_MISSING); return error; }
public static ErrorType getErrorTypeProcessingException() { final ErrorType error = new ErrorType(); error.setType(ConstantsRateGain.Error.Type.PROCESSING_EXCEPTION); return error; }
public static ErrorType getErrorTypeNoImplemetantation() { final ErrorType error = new ErrorType(); error.setType(ConstantsRateGain.Error.Type.NO_IMPLEMENTATION); return error; }