Class ResultsProtocolFailure
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
gov.nasa.jpl.aerie.scheduler.server.exceptions.ResultsProtocolFailure
- All Implemented Interfaces:
Serializable
error whose getMessage() should be reported to a ResultsProtocol.WriterRole.failWith()
after reporting to the relevant ResultsProtocol, the exception should be consumed
used to allow idiomatic java control flow unwinding and uniform message passing
while still differentiating from more serious exceptions that should propagate out
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptioncreate a new exception that should be reported to the ResultsProtocolResultsProtocolFailure(String msg, Throwable cause) create a new exception that should be reported to the ResultsProtocolResultsProtocolFailure(Throwable cause) create a new exception that should be reported to the ResultsProtocol -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
ResultsProtocolFailure
create a new exception that should be reported to the ResultsProtocol- Parameters:
msg- the detail of the error that should be reported in the ResultsProtocol
-
ResultsProtocolFailure
create a new exception that should be reported to the ResultsProtocol- Parameters:
cause- the underlying cause of the error, whose own getMessage should be reported
-
ResultsProtocolFailure
create a new exception that should be reported to the ResultsProtocol- Parameters:
msg- the detail of the error that should be reported in the ResultsProtocolcause- the underlying cause of the error, when known
-