exceptions#
Exception classes for GAMSPy
- exception gamspy.exceptions.EngineException(message: str, return_code: int, status_code: int | None = None)[source]#
Bases:
GamspyExceptionGAMS Engine execution exception.
- Parameters:
- messagestr
- return_codeint
- status_codeint | None, optional
- exception gamspy.exceptions.FatalError[source]#
Bases:
ExceptionIndicates an error that cannot be recovered from. This error should never be caught.
- exception gamspy.exceptions.GamspyException(message: str, return_code: int | None = None)[source]#
Bases:
ExceptionPlain Gamspy exception. This exception can be caught and GAMSPy should be able to continue.
- Parameters:
- messagestr
- return_codeint | None
- exception gamspy.exceptions.LatexException(message: str, return_code: int | None = None)[source]#
Bases:
GamspyExceptionTo latex execution exception
- exception gamspy.exceptions.NeosException(message: str, return_code: int | None = None)[source]#
Bases:
GamspyExceptionNEOS Server execution exception