Safe Haskell | Safe |
---|---|
Language | Haskell2010 |
A collection of exceptions that can be raised in the pure algorithms in Data.BTree.Primitives, Data.BTree.Impure and Data.BTree.Pure.
- throw :: Exception e => e -> a
- data TreeAlgorithmError = TreeAlgorithmError String String
- data KeyTooLargeError = KeyTooLargeError
Re-exports
throw :: Exception e => e -> a #
Throw an exception. Exceptions may be thrown from purely
functional code, but may only be caught within the IO
monad.
Custom exceptions
data TreeAlgorithmError Source #
An exception raised when the pure modification algorithms are called using invalid state.
This exception is only raised when a the library contains a bug.
The first argument is a function name indicating the location of the error. The second argument is the description of the error.
data KeyTooLargeError Source #
An exception thrown when the keys inserted in the database are larger than
maxKeySize
.
Note that this exception can be thrown long after the key violating the maximum key size was inserted. It is only detected when the tree modification algorithms try to split the node containing that key.
Increase the page size to fix this problem.