Package com.avoka.fc.core.servlet.dd.cmd
Class BadRequestException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- com.avoka.fc.core.servlet.dd.cmd.BadRequestException
-
- All Implemented Interfaces:
Serializable
public class BadRequestException extends RuntimeException
Provides a HTTP 400 Bad Request exception class.- Since:
- 17.11.10
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description BadRequestException(String error, String errorKey)
Create a HTTP 400 Bad Request exception class.BadRequestException(String error, Throwable cause, String errorKey)
Create a HTTP 400 Bad Request exception class.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getErrorKey()
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
BadRequestException
public BadRequestException(String error, Throwable cause, String errorKey)
Create a HTTP 400 Bad Request exception class.- Parameters:
error
- the error message which will be included in the JSON error responsecause
- the cause of the error the root cause of the errorerrorKey
- the error key the localized message error key
-
-
Method Detail
-
getErrorKey
public String getErrorKey()
- Returns:
- the localized errorKey
-
-