Class ValidationException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- cloud.metaapi.sdk.clients.error_handler.ApiException
-
- cloud.metaapi.sdk.clients.error_handler.ValidationException
-
- All Implemented Interfaces:
Serializable
public class ValidationException extends ApiException
Represents validation error. Throwing this error results in 400 (Bad Request) HTTP response code.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description List<ValidationDetails>detailsValidation error details-
Fields inherited from class cloud.metaapi.sdk.clients.error_handler.ApiException
status
-
-
Constructor Summary
Constructors Constructor Description ValidationException(String message, List<ValidationDetails> details)Constructs validation error.
-
Method Summary
-
Methods inherited from class cloud.metaapi.sdk.clients.error_handler.ApiException
getArguments, getCode, setArguments, setCode
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Field Detail
-
details
public List<ValidationDetails> details
Validation error details
-
-
Constructor Detail
-
ValidationException
public ValidationException(String message, List<ValidationDetails> details)
Constructs validation error.- Parameters:
message- error messagedetails- error data
-
-