NotInProblemException
Exception is raised in case a deleted variable, row, etc is accessed or such an object is queried from a problem to which it does not belong. More...
#include <xpress_objects.hpp>

Public Member Functions |
|
NotInProblemException (std::string message) | |
Create a exception. |
|
NotInProblemException (std::string message, int index) | |
Create a exception. |
|
auto | getIndex () const -> int |
The offending index [get]. |
|
void | setIndex (int newIndex) |
The offending index [set]. |
|
Public Member Functions inherited from xpress::XPRSException | |
XPRSException (char const *message) | |
Create a new exception. |
|
XPRSException (int error) | |
Create a new exception. |
|
XPRSException (std::string const &message) | |
Create a new exception. |
|
int | getErrorCode () const |
Get the error code for this message. |
|
virtual char const * | what () const noexcept override |
Get the error message for this exception. |
|
Additional Inherited Members |
|
Static Public Member Functions inherited from xpress::XPRSException | |
static auto | error (XPRSbranchobject branchobject, int code) -> XPRSException |
Create an exception for an error with a branch object. |
|
static auto | error (XPRSmipsolenum enumerator, int code) -> XPRSException |
Create an exception for an error with a solution enumerator. |
|
static auto | error (XPRSmipsolpool pool, int code) -> XPRSException |
Create an exception for an error with a solution pool. |
|
static auto | error (XPRSnamelist namelist, int code) -> XPRSException |
Create an exception for an error with a namelist. |
|
static auto | error (XPRSprob prob, int code) -> XPRSException |
Create an exception for an error with a problem. |
|
static auto | licenseError (int code) -> XPRSException |
Create a licensing error. |
|
Static Public Attributes inherited from xpress::XPRSException | |
static constexpr int const | UNKNOWN_ERROR = std::numeric_limits<int>::min() |
Error code value that indicates an unknown error. |
|
Detailed Description
Exception is raised in case a deleted variable, row, etc is accessed or such an object is queried from a problem to which it does not belong.
- Since
- 44.00
Constructor & Destructor Documentation
NotInProblemException() [1/2]
|
inline |
Create a exception.
The index in the exception will be std::numeric_limits<int>::min()
.
- Parameters
-
message Error message.
- Since
- 44.00
NotInProblemException() [2/2]
|
inline |
Create a exception.
- Parameters
-
message Error message. index Offending index.
- Since
- 44.00
Member Function Documentation
getIndex()
|
inline |
The offending index [get].
- Since
- 44.00
setIndex()
|
inline |
The offending index [set].
- Since
- 44.00
The documentation for this class was generated from the following file:
- xpress_objects.hpp
© 2001-2025 Fair Isaac Corporation. All rights reserved. This documentation is the property of Fair Isaac Corporation (“FICO”). Receipt or possession of this documentation does not convey rights to disclose, reproduce, make derivative works, use, or allow others to use it except solely for internal evaluation purposes to determine whether to purchase a license to the software described in this documentation, or as otherwise set forth in a written software license agreement between you and FICO (or a FICO affiliate). Use of this documentation and the software described in it must conform strictly to the foregoing permitted uses, and no other use is permitted.