Package com.portal.common
Class CurrencyRateException
java.lang.Object
java.lang.Throwable
java.lang.Exception
com.portal.pcm.PortalException
com.portal.common.CurrencyRateException
- All Implemented Interfaces:
Serializable
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
static final int
The reason that the exception was thrown. -
Constructor Summary
ConstructorsConstructorDescriptionCurrencyRateException
(int srcCurrencyID, int destCurrencyID, Date transactionDate, EBufException ebufExcptn, int reasonCode) Constructs an exception thrown by the CurrencyRateManager and CurrencyRate classes. -
Method Summary
Modifier and TypeMethodDescriptionint
Return the ID of the currency to convert to.Return the Portal exeption that was thrown when the error was encountered.int
Return the reason that the exception was thrown .int
Return the ID of the currency to convert from.Return the time/date the conversion was applied.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Field Details
-
RATE_NOT_FOUND
public static final int RATE_NOT_FOUNDThe reason that the exception was thrown.- See Also:
-
RATE_CANNOT_BE_PARSED
public static final int RATE_CANNOT_BE_PARSED- See Also:
-
-
Constructor Details
-
CurrencyRateException
public CurrencyRateException(int srcCurrencyID, int destCurrencyID, Date transactionDate, EBufException ebufExcptn, int reasonCode) Constructs an exception thrown by the CurrencyRateManager and CurrencyRate classes. This exception is thrown when the rate is not found, the rate cannot be properly parsed, etc.- Parameters:
srcCurrencyID
- The ID of the currency to convert from.destCurrencyID
- The ID of the currency to convert to.transactionDate
- The time/date the conversion was made.ebufExcptn
- The Portal exeption that was thrown when the error was encountered.reasonCode
- The reason that the exception was thrown (rate not found, rate data corrupt, etc.)
-
-
Method Details
-
getSrcCurI
public int getSrcCurI()Return the ID of the currency to convert from.- Returns:
- The ID of the currency to convert from.
-
getDestCurID
public int getDestCurID()Return the ID of the currency to convert to.- Returns:
- The ID of the currency to convert to.
-
getTransDate
Return the time/date the conversion was applied.- Returns:
- The time/date the conversion was applied (when the amount was billed, when the adjustment was made, etc.)
-
getEBufException
Return the Portal exeption that was thrown when the error was encountered.- Returns:
- The Portal exeption that was thrown when the error was encountered. A value of null could be returned.
-
getReason
public int getReason()Return the reason that the exception was thrown .- Returns:
- The reason that the exception was thrown (rate not found, rate data corrupt, etc.)
-