org.starhope.appius.pay.util
Class RetryPaymentException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by org.starhope.appius.pay.util.RetryPaymentException
All Implemented Interfaces:
Serializable

public class RetryPaymentException
extends Exception

Author:
brpocock
See Also:
Serialized Form

Field Summary
private  String message
           
private  Payment p
           
private  Date retry
           
private static long serialVersionUID
           
private  String title
           
 
Constructor Summary
RetryPaymentException(String title, String message, Payment p)
           
 
Method Summary
 String getMessage()
           
 Date getRetry()
           
 String getTitle()
           
 void retry()
           
 void setRetry(Date retry)
           
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

serialVersionUID

private static final long serialVersionUID
See Also:
Constant Field Values

message

private final String message

p

private final Payment p

retry

private Date retry

title

private final String title
Constructor Detail

RetryPaymentException

public RetryPaymentException(String title,
                             String message,
                             Payment p)
Parameters:
title - The title of the message to show the user
message - A detailed explanation of the delay in user-visible terms
p - The payment object which needs to be retried.
Method Detail

getMessage

public String getMessage()
Overrides:
getMessage in class Throwable
See Also:
Throwable.getMessage()

getTitle

public String getTitle()
Returns:
the title of the retry message

retry

public void retry()
           throws UnsupportedCurrencyException,
                  NotFoundException,
                  UnsupportedCredentialException,
                  IOException,
                  RetryPaymentException
Throws:
UnsupportedCurrencyException
NotFoundException
UnsupportedCredentialException
IOException
RetryPaymentException

setRetry

public void setRetry(Date retry)

getRetry

public Date getRetry()