Class ExceptionResponse

  • All Implemented Interfaces:
    PlatformMessage, java.io.Serializable, java.lang.Cloneable

    public class ExceptionResponse
    extends AbstractPlatformMessage
    Response containing an Exception.

    This message will be returned in situations where the sent in message encountered an unrecoverable exception during processing.

    See Also:
    Serialized Form
    • Constructor Detail

      • ExceptionResponse

        public ExceptionResponse​(java.lang.Throwable e)
    • Method Detail

      • setCause

        public void setCause​(java.lang.Throwable e)
        Set the cause for this ExceptionResponse.

        NOTE: e will be converted to an AttivioException that is suitable for returning to the client. All exceptions in the cause chain will likewise be converted to AttivioExceptions..

      • getCause

        public AttivioException getCause​(java.lang.String message,
                                         java.lang.Object... args)
        Get the cause.

        Use message as the default exception message if the cause has no message.