Package org.openwms.tms
Class StateChangeException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.ameba.exception.BusinessRuntimeException
org.ameba.exception.BehaviorAwareException
org.openwms.tms.StateChangeException
- All Implemented Interfaces:
Serializable
@ResponseStatus(BAD_REQUEST)
public class StateChangeException
extends org.ameba.exception.BehaviorAwareException
A StateChangeException signals that the request to change the state of a
TransportOrder
was not allowed.- Author:
- Heiko Scherrer
- See Also:
-
Constructor Summary
ConstructorDescriptionStateChangeException
(String message) StateChangeException
(String message, String msgKey, Serializable... data) StateChangeException
(org.ameba.i18n.Translator translator, String messageKey, Serializable... param) -
Method Summary
Methods inherited from class org.ameba.exception.BehaviorAwareException
toResponse, toResponse
Methods inherited from class org.ameba.exception.BusinessRuntimeException
getData, getMessageKey
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
StateChangeException
-
StateChangeException
-
StateChangeException
public StateChangeException(org.ameba.i18n.Translator translator, String messageKey, Serializable... param)
-
-
Method Details
-
getStatus
public org.springframework.http.HttpStatus getStatus()- Specified by:
getStatus
in classorg.ameba.exception.BehaviorAwareException
-