Class IndeterminateEvaluationException

  • All Implemented Interfaces:
    Serializable

    public class IndeterminateEvaluationException
    extends Exception
    Exception wrapper for XACML Indeterminate/error caused by evaluation

    TODO: 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 Detail

      • IndeterminateEvaluationException

        public IndeterminateEvaluationException​(ImmutableXacmlStatus status,
                                                Throwable cause)
        Instantiates with error message and XACML StatusCode (e.g. XacmlStatusCode.PROCESSING_ERROR), and internal cause for error
        Parameters:
        status - XACML status, StatusCode value must be a valid xs:anyURI (used as XACML StatusCode Value)
        cause - internal cause of error
      • IndeterminateEvaluationException

        public IndeterminateEvaluationException​(ImmutableXacmlStatus status)
        Creates exception with message and XACML StatusCode (e.g. XacmlStatusCode.PROCESSING_ERROR)
        Parameters:
        status - XACML status, StatusCode value must be a valid xs:anyURI (used as XACML StatusCode Value)
      • IndeterminateEvaluationException

        public IndeterminateEvaluationException​(String message,
                                                String xacmlStatusCode,
                                                Throwable cause)
        Instantiates with error message and XACML StatusCode (e.g. XacmlStatusCode.PROCESSING_ERROR)
        Parameters:
        message - error message XACML status, StatusCode value must be a valid xs:anyURI (used as XACML StatusCode Value)
        xacmlStatusCode - XACML StatusCode value
        cause - internal cause of error
      • IndeterminateEvaluationException

        public IndeterminateEvaluationException​(String message,
                                                IndeterminateEvaluationException cause)
        Instantiates with error message and cause
        Parameters:
        message - error message XACML status, StatusCode value must be a valid xs:anyURI (used as XACML StatusCode Value)
        cause - internal cause of error
      • IndeterminateEvaluationException

        public IndeterminateEvaluationException​(String message,
                                                String xacmlStatusCode)
        Instantiates with error message and XACML StatusCode (e.g. XacmlStatusCode.PROCESSING_ERROR)
        Parameters:
        message - error message XACML status, StatusCode value must be a valid xs:anyURI (used as XACML StatusCode Value)
        xacmlStatusCode - XACML StatusCode value
    • Method Detail

      • getTopLevelStatus

        public ImmutableXacmlStatus getTopLevelStatus()
        Get status corresponding to the top-level exception (last occurred) in the stacktrace
        Returns:
        status (always non-null)