Пример #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;
 }
Пример #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;
 }
Пример #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;
 }
Пример #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;
 }
Пример #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;
 }
Пример #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;
 }
Пример #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;
 }
Пример #8
0
 public static ErrorType getErrorTypeApplicationError() {
   ErrorType error = new ErrorType();
   error.setType(ConstantsRateGain.Error.Type.APPLICATION_ERROR);
   return error;
 }
Пример #9
0
 public static ErrorType getErrorTypeRequiredFieldMissing() {
   ErrorType error = new ErrorType();
   error.setType(ConstantsRateGain.Error.Type.REQUIRED_FIELD_MISSING);
   return error;
 }
Пример #10
0
 public static ErrorType getErrorTypeAuthenticationModel() {
   ErrorType error = new ErrorType();
   error.setType(ConstantsRateGain.Error.Type.AUTHENTICATION_MODEL);
   return error;
 }
Пример #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;
 }
Пример #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;
 }
Пример #13
0
 public static ErrorType getErrorTypeApplicationErrorCodeUndeterminedError() {
   ErrorType error = getErrorTypeApplicationError();
   error.setCode(ConstantsRateGain.Error.Code.UNDETERMINED_ERROR);
   return error;
 }
Пример #14
0
 public static ErrorType getErrorTypeAuthenticationModelCodeRequiredFieldMissing() {
   ErrorType error = getErrorTypeAuthenticationModel();
   error.setCode(ConstantsRateGain.Error.Code.REQUIRED_FIELD_MISSING);
   return error;
 }
Пример #15
0
 public static ErrorType getErrorTypeProcessingException() {
   final ErrorType error = new ErrorType();
   error.setType(ConstantsRateGain.Error.Type.PROCESSING_EXCEPTION);
   return error;
 }
Пример #16
0
 public static ErrorType getErrorTypeNoImplemetantation() {
   final ErrorType error = new ErrorType();
   error.setType(ConstantsRateGain.Error.Type.NO_IMPLEMENTATION);
   return error;
 }