Class EContractException

Unit

Declaration

type EContractException = class(Exception)

Description

Exception class for contract-related errors.

Hierarchy

Overview

Methods

Public constructor Create(const AMsg: string; const AItemError: TTradeRouteLegItemError; const ATradeRouteLeg: TTradeRouteLeg; const AForAllLegs: Boolean); reintroduce;

Properties

Public property ItemError: TTradeRouteLegItemError read FItemError;
Public property TradeRouteLeg: TTradeRouteLeg read FTradeRouteLeg;
Public property ForAllLegs: Boolean read FForAllLegs;

Description

Methods

Public constructor Create(const AMsg: string; const AItemError: TTradeRouteLegItemError; const ATradeRouteLeg: TTradeRouteLeg; const AForAllLegs: Boolean); reintroduce;

Constructor.

Parameters
AMsg
The error message.
AItemError
The error of the trade route leg.
ATradeRouteLeg
The trade route leg.
AForAllLegs
If True, the error applies to all legs.

Properties

Public property ItemError: TTradeRouteLegItemError read FItemError;

Error type.

Public property TradeRouteLeg: TTradeRouteLeg read FTradeRouteLeg;

Trade route leg related to the error. Only the field associated with the error is relevant.

Public property ForAllLegs: Boolean read FForAllLegs;

Indicates if the error applies to all legs.