package owl-base

  1. Overview
  2. Docs
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source

Module Owl_exceptionSource

Core function
Sourceval check : bool -> exn -> unit

``check p e`` raises the exception ``e`` if the predicate ``p`` is ``false``, otherwise returns ``unit``.

Parameters: * ``p``: predicate to check. * ``e``: exception to raise.

Returns: * ``unit``

Exception definition
Sourceexception NOT_IMPLEMENTED

Exception of not implemented yet.

Sourceexception NOT_SUPPORTED

Exception of not supported type.

Sourceexception FOUND

Exception of found an element.

Sourceexception NOT_FOUND

Exception of not found an element.

Sourceexception EMPTY_ARRAY

Exception of an empty array

Sourceexception TEST_FAIL

Unit Test fails.

Sourceexception NOT_SQUARE

Fails if a matrix is not square.

Sourceexception DIFFERENT_SHAPE

Fail if two ndarrays have different shape.

Sourceexception NOT_BROADCASTABLE

Fail if the shapes of multiple ndarrays are not broadcastable.

Sourceexception NOT_CONVERGE

Fail to converge.

Sourceexception MAX_ITERATION

Number of iteration exceeds the threshold.

Sourceexception SINGULAR

Exception of singular matrix.

Sourceexception NOT_SIMPLEX

Exception of not being simplex.

Sourceexception INDEX_OUT_OF_BOUND

Exception of index out of boundary.

Sourceexception ZOO_ILLEGAL_GIST_NAME

Exception of illegal gist name.