Class BadRequestException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- org.springframework.core.NestedRuntimeException
-
- org.springframework.web.client.RestClientException
-
- org.springframework.web.client.RestClientResponseException
-
- org.springframework.web.client.HttpStatusCodeException
-
- org.springframework.web.client.HttpServerErrorException
-
- org.odpi.openmetadata.userinterface.uichassis.springboot.api.exceptions.BadRequestException
-
- All Implemented Interfaces:
Serializable
@ResponseStatus(BAD_REQUEST) public class BadRequestException extends org.springframework.web.client.HttpServerErrorException- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.springframework.web.client.HttpServerErrorException
org.springframework.web.client.HttpServerErrorException.BadGateway, org.springframework.web.client.HttpServerErrorException.GatewayTimeout, org.springframework.web.client.HttpServerErrorException.InternalServerError, org.springframework.web.client.HttpServerErrorException.NotImplemented, org.springframework.web.client.HttpServerErrorException.ServiceUnavailable
-
-
Constructor Summary
Constructors Constructor Description BadRequestException(UserInterfaceErrorCodes errorCode, String message)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description UserInterfaceErrorCodesgetErrorCode()-
Methods inherited from class org.springframework.web.client.RestClientResponseException
getRawStatusCode, getResponseBodyAsByteArray, getResponseBodyAsString, getResponseBodyAsString, getResponseHeaders, getStatusText
-
Methods inherited from class org.springframework.core.NestedRuntimeException
contains, getMessage, getMostSpecificCause, getRootCause
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
BadRequestException
public BadRequestException(UserInterfaceErrorCodes errorCode, String message)
- Parameters:
errorCode- the error ui error code associated with the exceptionmessage- text to display to client
-
-
Method Detail
-
getErrorCode
public UserInterfaceErrorCodes getErrorCode()
-
-