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

public class ResultsProtocolFailure extends RuntimeException
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 Details

    • ResultsProtocolFailure

      public ResultsProtocolFailure(String msg)
      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

      public ResultsProtocolFailure(Throwable cause)
      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

      public ResultsProtocolFailure(String msg, Throwable cause)
      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
      cause - the underlying cause of the error, when known