Java Doc for PaymentException.java in  » 6.0-JDK-Modules » j2me » com » sun » j2me » payment » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » 6.0 JDK Modules » j2me » com.sun.j2me.payment 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   java.lang.Throwable
      java.lang.Exception
         com.sun.j2me.payment.PaymentException

PaymentException
public class PaymentException extends Exception (Code)
Thrown when validating MIDlet's payment information or when downloading and validating a payment update file (JPP).
version:
   1.2


Field Summary
final public static  intEXPIRED_CA_CERT
     The public key of the provider's root CA has expired.
final public static  intEXPIRED_PROVIDER_CERT
     The provider's certificate has expired or is not yet valid.
final public static  intINCOMPLETE_INFORMATION
     The payment information is incomplete.
final public static  intINFORMATION_EXPIRED
     The payment information has been expired.
final public static  intINFORMATION_NOT_YET_VALID
     The payment information is not yet valid.
final public static  intINVALID_ADAPTER_CONFIGURATION
     The payment information contains an invalid PaymentSpecificInformation field.
final public static  intINVALID_ATTRIBUTE_VALUE
     The payment information contains an attribute with an invalid value.
final public static  intINVALID_PRICE_INFORMATION
     The payment information contains an invalid PaymentSpecificPrice- Information field.
final public static  intINVALID_PROPERTIES_FORMAT
     The payment update file has an invalid properties file format.
final public static  intINVALID_PROVIDER_CERT
     The provider's certificate is invalid.
final public static  intINVALID_UPDATE_TYPE
     The payment update file has an invalid or missing MIME-type.
final public static  intINVALID_UPDATE_URL
     The payment update failed because the update URL is invalid.
final public static  intMISSING_MANDATORY_ATTRIBUTE
     The payment information doesn't contain a mandatory attribute.
final public static  intNO_TRUSTED_CHAIN
     The payment update file does not contain any certification chain which can be verified.
final public static  intSIGNATURE_VERIFICATION_FAILED
     The verification of the payment update file's signature has failed.
final public static  intUNSUPPORTED_ADAPTERS
     The device doesn't support any of the adapters listed in the payment information file.
final public static  intUNSUPPORTED_PAYMENT_INFO
     The payment information has an unsupported version.
final public static  intUNSUPPORTED_PROVIDERS
     The device doesn't support any of the adapters listed in the payment information file.
final public static  intUNSUPPORTED_UPDATE_CHARSET
     The payment update file has an unsupported character set.
final public static  intUNSUPPORTED_URL_SCHEME
     The device doesn't support the scheme of the update URL.
final public static  intUPDATE_NOT_FOUND
     The payment update file has not been found on the server.
final public static  intUPDATE_REQUEST_ERROR
     The http request failed.
final public static  intUPDATE_SERVER_BUSY
     The update server is busy.
final public static  intUPDATE_SERVER_NOT_FOUND
     The update server has been not found.

Constructor Summary
public  PaymentException(int reason)
     Creates an instance of the PaymentException class with the given reason.
public  PaymentException(int reason, String detail)
     Creates an instance of the PaymentException class with the given reason and the detail message.
public  PaymentException(int reason, String param, String detail)
     Creates an instance of the PaymentException class with the given reason, an additional string value which meaning depends on the reason and the detail message.

Method Summary
final public  StringgetDetail()
     Returns the detail message for the exception.
final public  StringgetMessage()
     Returns the full description of the exception.
final public  StringgetParam()
     Returns an additional string value which depends on the reason for the exception.
final public  intgetReason()
     Returns the reason for the exception as a number.
final public  voidsetParam(String param)
     Sets an additional string value which depends on the reason for the exception.

Field Detail
EXPIRED_CA_CERT
final public static int EXPIRED_CA_CERT(Code)
The public key of the provider's root CA has expired. The getParam() method returns the subject name of the CA certificate.



EXPIRED_PROVIDER_CERT
final public static int EXPIRED_PROVIDER_CERT(Code)
The provider's certificate has expired or is not yet valid. The getParam() method returns the subject name of the certificate.



INCOMPLETE_INFORMATION
final public static int INCOMPLETE_INFORMATION(Code)
The payment information is incomplete.



INFORMATION_EXPIRED
final public static int INFORMATION_EXPIRED(Code)
The payment information has been expired.



INFORMATION_NOT_YET_VALID
final public static int INFORMATION_NOT_YET_VALID(Code)
The payment information is not yet valid.



INVALID_ADAPTER_CONFIGURATION
final public static int INVALID_ADAPTER_CONFIGURATION(Code)
The payment information contains an invalid PaymentSpecificInformation field. The getParam() method returns the name of the attribute which contains the invalid field.



INVALID_ATTRIBUTE_VALUE
final public static int INVALID_ATTRIBUTE_VALUE(Code)
The payment information contains an attribute with an invalid value. The getParam() method returns the name of the attribute.



INVALID_PRICE_INFORMATION
final public static int INVALID_PRICE_INFORMATION(Code)
The payment information contains an invalid PaymentSpecificPrice- Information field. The getParam() method returns the name of the attribute which contains the invalid field.



INVALID_PROPERTIES_FORMAT
final public static int INVALID_PROPERTIES_FORMAT(Code)
The payment update file has an invalid properties file format.



INVALID_PROVIDER_CERT
final public static int INVALID_PROVIDER_CERT(Code)
The provider's certificate is invalid. The getParam() method returns the subject name of the certificate.



INVALID_UPDATE_TYPE
final public static int INVALID_UPDATE_TYPE(Code)
The payment update file has an invalid or missing MIME-type. The getParam() method returns this type.



INVALID_UPDATE_URL
final public static int INVALID_UPDATE_URL(Code)
The payment update failed because the update URL is invalid. The getParam() method returns the URL.



MISSING_MANDATORY_ATTRIBUTE
final public static int MISSING_MANDATORY_ATTRIBUTE(Code)
The payment information doesn't contain a mandatory attribute. The getParam() method returns the name of the attribute.



NO_TRUSTED_CHAIN
final public static int NO_TRUSTED_CHAIN(Code)
The payment update file does not contain any certification chain which can be verified.



SIGNATURE_VERIFICATION_FAILED
final public static int SIGNATURE_VERIFICATION_FAILED(Code)
The verification of the payment update file's signature has failed.



UNSUPPORTED_ADAPTERS
final public static int UNSUPPORTED_ADAPTERS(Code)
The device doesn't support any of the adapters listed in the payment information file. The getParam() method returns the name of the attribute which contains the adapter names.



UNSUPPORTED_PAYMENT_INFO
final public static int UNSUPPORTED_PAYMENT_INFO(Code)
The payment information has an unsupported version. The getParam() method returns the number of this version.



UNSUPPORTED_PROVIDERS
final public static int UNSUPPORTED_PROVIDERS(Code)
The device doesn't support any of the adapters listed in the payment information file. The getParam() method returns the name of the attribute which contains the provider names.



UNSUPPORTED_UPDATE_CHARSET
final public static int UNSUPPORTED_UPDATE_CHARSET(Code)
The payment update file has an unsupported character set. The getParam() method returns the character set name.



UNSUPPORTED_URL_SCHEME
final public static int UNSUPPORTED_URL_SCHEME(Code)
The device doesn't support the scheme of the update URL. The getParam() method returns the update URL.



UPDATE_NOT_FOUND
final public static int UPDATE_NOT_FOUND(Code)
The payment update file has not been found on the server. The getParam() method returns the URL of the payment update file.



UPDATE_REQUEST_ERROR
final public static int UPDATE_REQUEST_ERROR(Code)
The http request failed. The getParam() method returns the HTTP response code.



UPDATE_SERVER_BUSY
final public static int UPDATE_SERVER_BUSY(Code)
The update server is busy.



UPDATE_SERVER_NOT_FOUND
final public static int UPDATE_SERVER_NOT_FOUND(Code)
The update server has been not found. The getParam() method returns the URL of the payment update file.




Constructor Detail
PaymentException
public PaymentException(int reason)(Code)
Creates an instance of the PaymentException class with the given reason.
Parameters:
  reason - the reason



PaymentException
public PaymentException(int reason, String detail)(Code)
Creates an instance of the PaymentException class with the given reason and the detail message.
Parameters:
  reason - the reason
Parameters:
  detail - the detail message



PaymentException
public PaymentException(int reason, String param, String detail)(Code)
Creates an instance of the PaymentException class with the given reason, an additional string value which meaning depends on the reason and the detail message.
Parameters:
  reason - the reason
Parameters:
  param - the string value
Parameters:
  detail - the detail message




Method Detail
getDetail
final public String getDetail()(Code)
Returns the detail message for the exception. the detail message



getMessage
final public String getMessage()(Code)
Returns the full description of the exception. It uses the reason code, the param value and the detail message to construct the description. the full description of the exception



getParam
final public String getParam()(Code)
Returns an additional string value which depends on the reason for the exception. the string value
See Also:   PaymentException.setParam



getReason
final public int getReason()(Code)
Returns the reason for the exception as a number. the reason



setParam
final public void setParam(String param)(Code)
Sets an additional string value which depends on the reason for the exception.
Parameters:
  param - the string value
See Also:   PaymentException.getParam




Methods inherited from java.lang.Throwable
public String getMessage()(Code)(Java Doc)
native public void printStackTrace()(Code)(Java Doc)
public String toString()(Code)(Java Doc)

Methods inherited from java.lang.Object
public boolean equals(Object obj)(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.