Class ProvisionException

  • All Implemented Interfaces:
    java.io.Serializable

    public final class ProvisionException
    extends java.lang.RuntimeException
    Indicates that there was a runtime failure while providing an instance.
    Since:
    2.0
    See Also:
    Serialized Form
    • Method Summary

      Modifier and Type Method Description
      java.util.Collection<Message> getErrorMessages()
      Returns messages for the errors that caused this exception.
      java.lang.String getMessage()  
      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, 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

      • ProvisionException

        public ProvisionException​(java.lang.Iterable<Message> messages)
        Creates a ConfigurationException containing messages.
      • ProvisionException

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

        public ProvisionException​(java.lang.String message)
    • Method Detail

      • getErrorMessages

        public java.util.Collection<Message> getErrorMessages()
        Returns messages for the errors that caused this exception.
      • getMessage

        public java.lang.String getMessage()
        Overrides:
        getMessage in class java.lang.Throwable