Skip to main content
Namespace: Phoenix.Optimization

Overview

This exception can be thrown by an algorithm when an algorithm specific code is raised.

Inheritance

AlgorithmException

Declaration

Description

This exception can be thrown by an algorithm when an algorithm specific code is raised.

Public Member Functions

Public Member Functions inherited from OptimizationException

Properties

Constructor & Destructor Documentation

AlgorithmException()

Constructs AlgorithmException with a code Parameters:
  • code - Code for the exception

AlgorithmException()

Constructs exception with a code and message Parameters:
  • code - Code for the exception
  • msg - Message for the exception

AlgorithmException()

Constructs exception with a code, message, and inner exception Parameters:
  • code - Code for the exception
  • msg - Message for the exception
  • inner - The exception that caused the algorithm exception to be thrown.

AlgorithmException()

Initializes a new instance of the AlgorithmException class with serialized data. Parameters:
  • info - The SerializationInfo that holds the serialized object data about the exception being thrown.
  • context - The StreamingContext that contains contextual information about the source or destination.

Member Function Documentation

GetObjectData

When overridden in a derived class, sets the SerializationInfo with information about the exception. Parameters:
  • info - The SerializationInfo that holds the serialized object data about the exception being thrown.
  • context - The StreamingContext that contains contextual information about the source or destination.

Code

Gets the algorithm specific code that was raised

Message

Gets the error code and message used to create the AlgorithmException.

Property Documentation

Code

Gets the algorithm specific code that was raised

Message

Gets the error code and message used to create the AlgorithmException.