OpenMath Content Dictionary: moreerrors

Canonical URL:
http://www.openmath.org/cd/moreerrors.ocd
CD Base:
http://www.openmath.org/cd
CD File:
moreerrors.ocd
CD as XML Encoded OpenMath:
moreerrors.omcd
Defines:
algorithm, asynchronousError, encodingError, limitation, unexpected
Date:
2004-03-30
Version:
2 (Revision 1)
Review Date:
2017-12-31
Status:
experimental


     This document is distributed in the hope that it will be useful, 
     but WITHOUT ANY WARRANTY; without even the implied warranty of 
     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

     The copyright holder grants you permission to redistribute this 
     document freely as a verbatim copy. Furthermore, the copyright
     holder permits you to develop any derived work from this document
     provided that the following conditions are met.
       a) The derived work acknowledges the fact that it is derived from
          this document, and maintains a prominent reference in the 
          work to the original source.
       b) The fact that the derived work is not the original OpenMath 
          document is stated prominently in the derived work.  Moreover if
          both this document and the derived work are Content Dictionaries
          then the derived work must include a different CDName element,
          chosen so that it cannot be confused with any works adopted by
          the OpenMath Society.  In particular, if there is a Content 
          Dictionary Group whose name is, for example, `math' containing
          Content Dictionaries named `math1', `math2' etc., then you should 
          not name a derived Content Dictionary `mathN' where N is an integer.
          However you are free to name it `private_mathN' or some such.  This
          is because the names `mathN' may be used by the OpenMath Society
          for future extensions.
       c) The derived work is distributed under terms that allow the
          compilation of derived works, but keep paragraphs a) and b)
          intact.  The simplest way to do this is to distribute the derived
          work under the OpenMath license, but this is not a requirement.
     If you have questions about this license please contact the OpenMath
     society at http://www.openmath.org.
  Author: OpenMath Consortium
  SourceURL: https://github.com/OpenMath/CDs
            

encodingError

Role:
error
Description:

This symbol represents the error which is returned when an application detects a lexical or syntactic error. It should have one argument which is a string, which should explain the error that occurred.

Example:
An application returns an 'encoding error'
encodingError The symbol <OMS cd='arith1' name='plus'/> may not take a String as first argument
Signatures:
sts


[Next: algorithm] [Last: asynchronousError] [Top]

algorithm

Role:
error
Description:

This symbol represents the error which is returned when an application raises an error due to algorithmic restrictions of the implementations. This includes operations not implemented or partially implemented, divisions by zero and other domain errors. It will have at least one argument, which is a string describing the problem. It may have a second argument which is relevant to the error.

Example:
An application returns an 'algorithm' error
algorithm multiplication by $\sqrt{-1}$ has not been implemented
Signatures:
sts


[Next: limitation] [Previous: encodingError] [Top]

limitation

Role:
error
Description:

This symbol represents the error which is returned when an application reads an error caused by the limitations of an implementation when dealing with OpenMath objects such as limits on the size of objects or on the kind of objects manipulated. This can include limits on the size of a bytearray or integer, a limit on the number of arguments of an application or the inability to deal with Unicode characters outside ISO latin 1. It will have at least one argument, which is a string describing the problem. It may have a second argument which is relevant to the error.

Example:
An application returns a 'limitation' error
limitation Integers $> 2^{32}-1$ are meaningless to this application
Signatures:
sts


[Next: unexpected] [Previous: algorithm] [Top]

unexpected

Role:
error
Description:

This symbol represents the error which is returned when an application reads an error caused by an unexpected problem. It will have at least one argument, which is a string describing the problem. It may have a second argument which is relevant to the error.

Example:
An application returns an 'unexpected' error
unexpected A kill was executed on the process whilst it was evaluating the expression 1 + 1
Signatures:
sts


[Next: asynchronousError] [Previous: limitation] [Top]

asynchronousError

Role:
error
Description:

This symbol represents the error which is returned when an application encounters some asynchronous error, for example if a limit in memory has been reached, or an error has occurred in some system call (I/O error, disk full, machine down). It should have one argument, which is a string describing the problem.

Example:
An application returns an 'asynchronousError' error
asynchronousError A 'disk-full' error occured
Signatures:
sts


[First: encodingError] [Previous: unexpected] [Top]