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
 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 #4
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 #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
 public static ErrorType getErrorTypeApplicationError() {
   ErrorType error = new ErrorType();
   error.setType(ConstantsRateGain.Error.Type.APPLICATION_ERROR);
   return error;
 }
Beispiel #9
0
 public static ErrorType getErrorTypeRequiredFieldMissing() {
   ErrorType error = new ErrorType();
   error.setType(ConstantsRateGain.Error.Type.REQUIRED_FIELD_MISSING);
   return error;
 }
Beispiel #10
0
 public static ErrorType getErrorTypeAuthenticationModel() {
   ErrorType error = new ErrorType();
   error.setType(ConstantsRateGain.Error.Type.AUTHENTICATION_MODEL);
   return error;
 }
Beispiel #11
0
 /**
  * @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;
 }
Beispiel #12
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 #13
0
 public static ErrorType getErrorTypeApplicationErrorCodeUndeterminedError() {
   ErrorType error = getErrorTypeApplicationError();
   error.setCode(ConstantsRateGain.Error.Code.UNDETERMINED_ERROR);
   return error;
 }
Beispiel #14
0
 public static ErrorType getErrorTypeAuthenticationModelCodeRequiredFieldMissing() {
   ErrorType error = getErrorTypeAuthenticationModel();
   error.setCode(ConstantsRateGain.Error.Code.REQUIRED_FIELD_MISSING);
   return error;
 }
Beispiel #15
0
 public static ErrorType getErrorTypeProcessingException() {
   final ErrorType error = new ErrorType();
   error.setType(ConstantsRateGain.Error.Type.PROCESSING_EXCEPTION);
   return error;
 }
Beispiel #16
0
 public static ErrorType getErrorTypeNoImplemetantation() {
   final ErrorType error = new ErrorType();
   error.setType(ConstantsRateGain.Error.Type.NO_IMPLEMENTATION);
   return error;
 }