Beispiel #1
0
 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;
 }
Beispiel #2
0
 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;
 }
Beispiel #3
0
 /**
  * @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;
 }
Beispiel #4
0
 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;
 }
Beispiel #5
0
 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;
 }
Beispiel #6
0
 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;
 }
Beispiel #7
0
 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;
 }
Beispiel #8
0
 /**
  * @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;
 }
Beispiel #9
0
 public static ErrorType getErrorTypeApplicationErrorCodeUndeterminedError() {
   ErrorType error = getErrorTypeApplicationError();
   error.setCode(ConstantsRateGain.Error.Code.UNDETERMINED_ERROR);
   return error;
 }
Beispiel #10
0
 public static ErrorType getErrorTypeRequiredFieldMissingCodeRequiredFieldMissing() {
   ErrorType error = getErrorTypeRequiredFieldMissing();
   error.setCode(ConstantsRateGain.Error.Code.REQUIRED_FIELD_MISSING);
   return error;
 }