Package com.storedobject.core
Class LogicRedirected
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.storedobject.core.LogicRedirected
- All Implemented Interfaces:
Serializable
This is a special exception that can be thrown from the constructors of logic classes to redirect
the logic execution to some other logic. This is typically used when the current logic can not be constructed
due to wrong set of parameters passed or some other reason. Or, it could be used in cases where the current user
doesn't have enough access privilege to execute the logic that is being constructed and we want to
redirect him/her to an alternate one.
- Author:
- Syam
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the alternate logic of the original logic.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
LogicRedirected
Constructor.- Parameters:
executable
- Alternate logic to be executed.
-
-
Method Details
-
getExecutable
Get the alternate logic of the original logic.- Returns:
- Alternate logic.
-