Class ProviderContractException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.osid.OsidRuntimeException
org.osid.ProviderContractException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
BadLogicException, InvalidErrorException, InvalidReturnException, MissingMethodException, NullReturnException
Errors in programming resulting from an incorrect implementation of the
OSIDs. These errors are not used in the method specifications as they
result only from an implementation problem detected by the OSID Runtime
environment or unit testing harness. Consumers receiving these errors
should consider the provider faulty. Providers do not return these errors
directly from their respective implementations.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionConstructs aProviderContractExceptionwith the specified detail message.ProviderContractException(String msg, Throwable t) Constructs aProviderContractExceptionwith the specified detail message and cause.Constructs aProviderContractExceptionwith the specified cause and a detail message ofcause.toString()which typically contains the class and detail message ofcause. -
Method Summary
Methods inherited from class Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
ProviderContractException
-
ProviderContractException
Constructs aProviderContractExceptionwith the specified detail message and cause. The error message stringmsgcan later be retrieved by the getMessage() method ofThrowable.- Parameters:
msg- the error messaget- the cause of the exception
-
ProviderContractException
Constructs aProviderContractExceptionwith the specified cause and a detail message ofcause.toString()which typically contains the class and detail message ofcause.- Parameters:
t- the cause of the exception
-