Source Code Cross Referenced for CurnUsageException.java in  » RSS-RDF » curn » org » clapper » curn » 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 » RSS RDF » curn » org.clapper.curn 
Source Cross Referenced  Class Diagram Java Document (Java Doc) 


001:        /*---------------------------------------------------------------------------*\
002:         $Id: CurnUsageException.java 6400 2006-09-06 18:29:58Z bmc $
003:        \*---------------------------------------------------------------------------*/
004:
005:        package org.clapper.curn;
006:
007:        /**
008:         * Thrown to indicate a <i>curn</i> usage exception (usually, something
009:         * under the user's control), rather than a system problem.
010:         *
011:         * @version <tt>$Revision: 6400 $</tt>
012:         */
013:        public class CurnUsageException extends CurnException {
014:            /*----------------------------------------------------------------------*\
015:                                           Constructor
016:            \*----------------------------------------------------------------------*/
017:
018:            /**
019:             * Default constructor, for an exception with no nested exception and
020:             * no message.
021:             */
022:            public CurnUsageException() {
023:                super ();
024:            }
025:
026:            /**
027:             * Constructs an exception containing another exception, but no message
028:             * of its own.
029:             *
030:             * @param exception  the exception to contain
031:             */
032:            public CurnUsageException(Throwable exception) {
033:                super (exception);
034:            }
035:
036:            /**
037:             * Constructs an exception containing an error message, but no
038:             * nested exception.
039:             *
040:             * @param message  the message to associate with this exception
041:             */
042:            public CurnUsageException(String message) {
043:                super (message);
044:            }
045:
046:            /**
047:             * Constructs an exception containing another exception and a message.
048:             *
049:             * @param message    the message to associate with this exception
050:             * @param exception  the exception to contain
051:             */
052:            public CurnUsageException(String message, Throwable exception) {
053:                super (message, exception);
054:            }
055:
056:            /**
057:             * Constructs an exception containing a resource bundle name, a message
058:             * key, and a default message (in case the resource bundle can't be
059:             * found). Using this constructor is equivalent to calling the
060:             * {@link #CurnUsageException(String,String,String,Object[])} constructor,
061:             * with a null pointer for the <tt>Object[]</tt> parameter.
062:             *
063:             * @param bundleName  resource bundle name
064:             * @param messageKey  the key to the message to find in the bundle
065:             * @param defaultMsg  the default message
066:             *
067:             * @see #CurnUsageException(String,String,String,Object[])
068:             */
069:            public CurnUsageException(String bundleName, String messageKey,
070:                    String defaultMsg) {
071:                super (bundleName, messageKey, defaultMsg);
072:            }
073:
074:            /**
075:             * Constructs an exception containing a resource bundle name, a message
076:             * key, and a default message (in case the resource bundle can't be
077:             * found). Using this constructor is equivalent to calling the
078:             * {@link #CurnUsageException(String,String,String,Object[],Throwable)}
079:             * constructor, with a null pointer for the <tt>Object[]</tt> parameter.
080:             *
081:             * @param bundleName  resource bundle name
082:             * @param messageKey  the key to the message to find in the bundle
083:             * @param defaultMsg  the default message
084:             * @param msgParams   parameters to the message, if any, or null
085:             *
086:             * @see #CurnUsageException(String,String,String,Object[],Throwable)
087:             */
088:            public CurnUsageException(String bundleName, String messageKey,
089:                    String defaultMsg, Object[] msgParams) {
090:                super (bundleName, messageKey, defaultMsg, msgParams);
091:            }
092:
093:            /**
094:             * Constructs an exception containing a resource bundle name, a message
095:             * key, a default message (in case the resource bundle can't be found), and
096:             * another exception. Using this constructor is equivalent to calling the
097:             * {@link #CurnUsageException(String,String,String,Object[],Throwable)}
098:             * constructor, with a null pointer for the <tt>Object[]</tt>
099:             * parameter.
100:             *
101:             * @param bundleName  resource bundle name
102:             * @param messageKey  the key to the message to find in the bundle
103:             * @param defaultMsg  the default message
104:             * @param exception   the exception to nest
105:             *
106:             * @see #CurnUsageException(String,String,String,Object[],Throwable)
107:             */
108:            public CurnUsageException(String bundleName, String messageKey,
109:                    String defaultMsg, Throwable exception) {
110:                this (bundleName, messageKey, defaultMsg, null, exception);
111:            }
112:
113:            /**
114:             * Constructs an exception containing a resource bundle name, a message
115:             * key, a default message format (in case the resource bundle can't be
116:             * found), arguments to be incorporated in the message via
117:             * <tt>java.text.MessageFormat</tt>, and another exception.
118:             * Calls to {@link #getMessage(Locale)} will attempt to retrieve the
119:             * top-most message (i.e., the message from this exception, not from
120:             * nested exceptions) by querying the named resource bundle. Calls to
121:             * {@link #printStackTrace(PrintWriter,Locale)} will do the same, where
122:             * applicable. The message is not retrieved until one of those methods
123:             * is called, because the desired locale is passed into
124:             * <tt>getMessage()</tt> and <tt>printStackTrace()</tt>, not this
125:             * constructor.
126:             *
127:             * @param bundleName  resource bundle name
128:             * @param messageKey  the key to the message to find in the bundle
129:             * @param defaultMsg  the default message
130:             * @param msgParams   parameters to the message, if any, or null
131:             * @param exception   exception to be nested
132:             *
133:             * @see #CurnUsageException(String,String,String,Object[])
134:             */
135:            public CurnUsageException(String bundleName, String messageKey,
136:                    String defaultMsg, Object[] msgParams, Throwable exception) {
137:                super(bundleName, messageKey, defaultMsg, msgParams, exception);
138:            }
139:        }
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.