Package org.ow2.authzforce.core.pdp.api
Class IndeterminateEvaluationException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- org.ow2.authzforce.core.pdp.api.IndeterminateEvaluationException
-
- All Implemented Interfaces:
Serializable
public class IndeterminateEvaluationException extends Exception
Exception wrapper for XACML Indeterminate/error caused by evaluationTODO: although we consider Exceptions as a good solution (from a Java standpoint) to propagate error information with a full traceable stacktrace, from a functional/logical point of view, we could improve performance by using return codes instead, whenever possible, especially where we don't lose any useful error info by doing so: cf. http://java-performance.info/throwing-an-exception-in-java-is-very-slow/
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description IndeterminateEvaluationException(String message, String statusCode)
Creates exception with message and XACML StatusCode (e.g.IndeterminateEvaluationException(String message, String statusCode, Throwable cause)
Instantiates with error message and XACML StatusCode (e.g.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getStatusCode()
Get XACML status code for this "Indeterminate"oasis.names.tc.xacml._3_0.core.schema.wd_17.Status
getTopLevelStatus()
Get status corresponding to the top-level exception (last occurred) in the stacktrace-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
IndeterminateEvaluationException
public IndeterminateEvaluationException(String message, String statusCode)
Creates exception with message and XACML StatusCode (e.g.XacmlStatusCode.PROCESSING_ERROR
)- Parameters:
message
- exception messagestatusCode
- XACML StatusCode value, must be a valid xs:anyURI (used as XACML StatusCode Value)
-
IndeterminateEvaluationException
public IndeterminateEvaluationException(String message, String statusCode, Throwable cause)
Instantiates with error message and XACML StatusCode (e.g.XacmlStatusCode.PROCESSING_ERROR
), and internal cause for error- Parameters:
message
- exception messagestatusCode
- XACML StatusCode value, must be a Valid xs:anyURI (used as XACML StatusCode Value)cause
- internal cause of error
-
-
Method Detail
-
getStatusCode
public String getStatusCode()
Get XACML status code for this "Indeterminate"- Returns:
- StatusCode value
-
getTopLevelStatus
public oasis.names.tc.xacml._3_0.core.schema.wd_17.Status getTopLevelStatus()
Get status corresponding to the top-level exception (last occurred) in the stacktrace- Returns:
- status
-
-