8.6.1. MDOException

MDOException

Represent an error that occurred while running the MindOpt application.

Methods

MDOException

Construct an error with an error code

MDOException

Construct an error with an error message

MDOException

Construct an error using error messages and error code

getErrorCode

Retrieve the error code

MDOException(int errcode)

Construct an error with an error code.

Parameters

int errcode – Error Code.

MDOException(String errmsg)

Construct an error with an error message.

Parameters

String errmsg – Error message.

MDOException(String errmsg, int errcode)

Construct an error using error messages and error code.

Parameters
  • String errmsg – Error message.

  • int errcode – Error Code.

int getErrorCode()

Retrieve the error code.

Returns

The error code.