Package com.strategyquant.datalib
Class TradingException
java.lang.Object
java.lang.Throwable
java.lang.Exception
com.strategyquant.datalib.TradingException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
BadStrategyException
Special trading exception - usually thrown when there is an exception during trading
- See Also:
- Serialized Form
-
Field Summary
-
Constructor Summary
ConstructorDescriptionInstantiates a new trading exception.Instantiates a new trading exception.TradingException(String message)
Instantiates a new trading exception.TradingException(String message, int code)
Instantiates a new trading exception.TradingException(String message, Exception e)
Instantiates a new trading exception. -
Method Summary
Modifier and TypeMethodDescriptionAdds the call.int
Returns error codeMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Field Details
-
IndicatorCalculationFailed
public static final int IndicatorCalculationFailed- See Also:
- Constant Field Values
-
-
Constructor Details
-
TradingException
public TradingException()Instantiates a new trading exception. -
TradingException
Instantiates a new trading exception.- Parameters:
message
- the message
-
TradingException
Instantiates a new trading exception.- Parameters:
message
- the message
-
TradingException
Instantiates a new trading exception.- Parameters:
e
- the e
-
TradingException
Instantiates a new trading exception.- Parameters:
message
- the messagee
- the e
-
-
Method Details
-
getErrorCode
public int getErrorCode()Returns error code -
addCall
Adds the call.- Parameters:
indicatorName
- the indicator name- Returns:
- the trading exception
-