Class DeniedException

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.ameba.exception.TechnicalRuntimeException
org.ameba.exception.ServiceLayerException
org.openwms.tms.DeniedException
All Implemented Interfaces:
Serializable

@ResponseStatus(CONFLICT) public class DeniedException extends org.ameba.exception.ServiceLayerException
A DeniedException is thrown by a DecisionVoters in case a business action is not allowed to be executed.
Author:
Heiko Scherrer
See Also:
  • Constructor Details

    • DeniedException

      private DeniedException(String message)
  • Method Details

    • with

      public static DeniedException with(String message)
      Factory method to create one with a message text.
      Parameters:
      message - Detail message
      Returns:
      A new instance