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:
  • Constructor Details

    • FieldErrorException

      public FieldErrorException(String fieldName, String message)
      Creates an exception that returns field error.
      Parameters:
      fieldName - the name of the field that caused the error
      message - the message of the error