Package com.rs.seagull.emulator.api
Class FieldValidationException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.rs.seagull.emulator.api.ApiException
com.rs.seagull.emulator.api.FieldException
com.rs.seagull.emulator.api.FieldValidationException
- All Implemented Interfaces:
Serializable
An unchecked exception for when there is a problem validating a field.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class com.rs.seagull.emulator.api.FieldException
FieldException.Type
-
Constructor Summary
ConstructorDescriptionFieldValidationException
(String fieldName, Enum<?> errorCode, String errorText) Create a newFieldValidationException
. -
Method Summary
Methods inherited from class com.rs.seagull.emulator.api.FieldException
getFieldName, getType
Methods inherited from class com.rs.seagull.emulator.api.ApiException
toString
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
-
Constructor Details
-
FieldValidationException
Create a newFieldValidationException
.- Parameters:
fieldName
- the name of the fielderrorCode
- the error codeerrorText
- the error text
-
-
Method Details
-
getErrorCode
Get the error code.- Returns:
- the error code
-
getErrorText
Get the error text.- Returns:
- the error text
-
getMessage
- Overrides:
getMessage
in classFieldException
-