Exception

This document is auto-generated for Owl’s APIs. #18 entries have been extracted.

Github: {Signature} {Implementation}

Core function

val 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

source code

Exception definition

exception NOT_IMPLEMENTED

Exception of not implemented yet.

exception NOT_SUPPORTED

Exception of not supported type.

exception FOUND

Exception of found an element.

exception NOT_FOUND

Exception of not found an element.

exception EMPTY_ARRAY

Exception of an empty array

exception TEST_FAIL

Unit Test fails.

exception NOT_SQUARE

Fails if a matrix is not square.

exception DIFFERENT_SHAPE

Fail if two ndarrays have different shape.

exception NOT_BROADCASTABLE

Fail if the shapes of multiple ndarrays are not broadcastable.

exception NOT_CONVERGE

Fail to converge.

exception MAX_ITERATION

Number of iteration exceeds the threshold.

exception SINGULAR

Exception of singular matrix.

exception NOT_SIMPLEX

Exception of not being simplex.

exception INDEX_OUT_OF_BOUND

Exception of index out of boundary.

exception ZOO_ILLEGAL_GIST_NAME

Exception of illegal gist name.