Class P4JavaError

  • All Implemented Interfaces:
    java.io.Serializable
    Direct Known Subclasses:
    ClientError, NullPointerError, ProtocolError, UnimplementedError

    public class P4JavaError
    extends java.lang.Error
    Class intended to be used to signal unrecoverable errors that a client or other package should probably not handle or that signal serious errors without known fixes.

    The intention here is to use this for things like null pointer errors, etc., that methods may check for but that should not have to be explicitly mentioned in the "throws" clause or dealt with by all callers.

    Note that P4JavaError and derived classes don't use the P4JavaException resource bundle scheme for error messages -- the thinking here is that errors are thrown when bundles, etc. may fail and all hell is breaking loose....

    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      P4JavaError()  
      P4JavaError​(java.lang.String message)  
      P4JavaError​(java.lang.String message, java.lang.Throwable cause)  
      P4JavaError​(java.lang.Throwable cause)  
    • Method Summary

      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • P4JavaError

        public P4JavaError()
      • P4JavaError

        public P4JavaError​(java.lang.String message)
      • P4JavaError

        public P4JavaError​(java.lang.Throwable cause)
      • P4JavaError

        public P4JavaError​(java.lang.String message,
                           java.lang.Throwable cause)