| Home >> All >> org >> apache >> derby >> iapi >> services >> [ sanity Javadoc ] |
org.apache.derby.iapi.services.sanity: Javadoc index of package org.apache.derby.iapi.services.sanity.
Package Samples:
org.apache.derby.iapi.services.sanity
Classes:
SanityManager: The SanityService provides assertion checking and debug control. Assertions and debug checks can only be used for testing conditions that might occur in development code but not in production code. They are compiled out of production code. Uses of assertions should not add AssertFailure catches or throws clauses; AssertFailure is under RuntimeException in the java exception hierarchy. Our outermost system block will bring the system down when it detects an assertion failure. In addition to ASSERTs in code, classes can choose to implement an isConsistent method that would be used by ASSERTs, UnitTests, ...
AssertFailure: AssertFailure is raised when an ASSERT check fails. Because assertions are not used in production code, are never expected to fail, and recovering from their failure is expected to be hard, they are under RuntimeException so that no one needs to list them in their throws clauses. An AssertFailure at the outermost system level will result in system shutdown.
SanityState
| Home | Contact Us | Privacy Policy | Terms of Service |