Class CurrencyRateException

All Implemented Interfaces:
Serializable

public class CurrencyRateException extends PortalException
See Also:
  • Field Details

    • RATE_NOT_FOUND

      public static final int RATE_NOT_FOUND
      The 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

      public Date 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

      public EBufException 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.)