Package dev.vernite.vernite.utils
Class FieldErrorException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.springframework.core.NestedRuntimeException
org.springframework.web.ErrorResponseException
org.springframework.web.server.ResponseStatusException
dev.vernite.vernite.utils.FieldErrorException
- All Implemented Interfaces:
Serializable
,org.springframework.web.ErrorResponse
public class FieldErrorException
extends org.springframework.web.server.ResponseStatusException
Creates an exception that returns field error.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.springframework.web.ErrorResponse
org.springframework.web.ErrorResponse.Builder
-
Constructor Summary
ConstructorsConstructorDescriptionFieldErrorException
(String fieldName, String message) Creates an exception that returns field error. -
Method Summary
Methods inherited from class org.springframework.web.server.ResponseStatusException
getHeaders, getMessage, getReason, getResponseHeaders
Methods inherited from class org.springframework.web.ErrorResponseException
getBody, getDetailMessageArguments, getDetailMessageCode, getStatusCode, setDetail, setInstance, setTitle, setType
Methods inherited from class org.springframework.core.NestedRuntimeException
contains, getMostSpecificCause, getRootCause
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.springframework.web.ErrorResponse
getDetailMessageArguments, getTitleMessageCode, updateAndGetBody
-
Constructor Details
-
FieldErrorException
Creates an exception that returns field error.- Parameters:
fieldName
- the name of the field that caused the errormessage
- the message of the error
-