exceptions#

Exception classes for GAMSPy

exception gamspy.exceptions.GamspyException(message: str, return_code: int | None = None)[source]#

Bases: Exception

Plain Gamspy exception.

Parameters:
messagestr
return_codeint | None
exception gamspy.exceptions.ValidationError[source]#

Bases: Exception

An error while validating data.

exception gamspy.exceptions.NeosClientException[source]#

Bases: Exception

NeosClient exception.

exception gamspy.exceptions.EngineClientException[source]#

Bases: Exception

EngineClient exception

exception gamspy.exceptions.NeosException(message: str, return_code: int | None = None)[source]#

Bases: GamspyException

NEOS Server execution exception

exception gamspy.exceptions.LatexException(message: str, return_code: int | None = None)[source]#

Bases: GamspyException

To latex execution exception

exception gamspy.exceptions.EngineException(message: str, return_code: int, status_code: int | None = None)[source]#

Bases: GamspyException

GAMS Engine execution exception.

Parameters:
messagestr
return_codeint
status_codeint | None, optional