Java Doc for SqlException.java in  » Database-DBMS » db-derby-10.2 » org » apache » derby » client » am » 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 » Database DBMS » db derby 10.2 » org.apache.derby.client.am 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   java.lang.Throwable
      java.lang.Exception
         org.apache.derby.client.am.SqlException

All known Subclasses:   org.apache.derby.client.am.SqlWarning,  org.apache.derby.client.am.DisconnectException,
SqlException
public class SqlException extends Exception implements Diagnosable(Code)


Field Summary
final public static  StringBATCH_POSITION_ID
    
final public static  StringCAUSED_BY_EXCEPTION_ID
    
public static  StringCLIENT_MESSAGE_RESOURCE_NAME
    
final protected static  intDEFAULT_ERRCODE
    
protected  StringcauseString_
    
protected  interrorcode_
    
protected static  SQLExceptionFactoryexceptionFactory
    
protected  Stringmessage_
    
protected  SqlExceptionnextException_
    
protected  Sqlcasqlca_
    
protected  Stringsqlstate_
    
protected  Throwablethrowable_
    
protected  SQLExceptionwrappedException_
    

Constructor Summary
public  SqlException(LogWriter logwriter, ClientMessageId msgid, Object[] args, Throwable cause)
     Create a SqlException.
public  SqlException(LogWriter logWriter, ClientMessageId msgid, Object[] args, SqlCode sqlcode, Throwable t)
    
public  SqlException(LogWriter logWriter, ClientMessageId msgid, Object[] args, SqlCode sqlcode)
    
public  SqlException(LogWriter logWriter, ClientMessageId msgid, SqlCode sqlcode)
    
public  SqlException(LogWriter logWriter, ClientMessageId msgid, Object arg1, SqlCode sqlcode)
    
public  SqlException(LogWriter logWriter, ClientMessageId msgid, Object arg1, Object arg2, SqlCode sqlcode)
    
public  SqlException(LogWriter logwriter, ClientMessageId msgid, Throwable cause)
    
public  SqlException(LogWriter logwriter, ClientMessageId msgid, Object[] args)
    
public  SqlException(LogWriter logwriter, ClientMessageId msgid)
    
public  SqlException(LogWriter logwriter, ClientMessageId msgid, Object arg1)
    
public  SqlException(LogWriter logwriter, ClientMessageId msgid, Object arg1, Throwable cause)
    
public  SqlException(LogWriter logwriter, ClientMessageId msgid, Object arg1, Object arg2, Throwable cause)
    
public  SqlException(LogWriter logwriter, ClientMessageId msgid, Object arg1, Object arg2)
    
public  SqlException(LogWriter logwriter, ClientMessageId msgid, Object arg1, Object arg2, Object arg3)
    
public  SqlException(LogWriter logWriter, Sqlca sqlca)
    
protected  SqlException(LogWriter logWriter, String reason, String sqlState, int errorCode)
    
protected  SqlException(LogWriter logWriter, java.lang.Throwable throwable, String reason, String sqlState, int errorCode)
    
public  SqlException(SQLException wrapme)
     Wrap a SQLException in a SqlException.

Method Summary
 SqlExceptioncopyAsUnchainedSQLException(LogWriter logWriter)
    
public  intgetErrorCode()
    
public  StringgetMessage()
    
public static  MessageUtilgetMessageUtil()
     This routine provides singleton access to an instance of MessageUtil that is constructed for client messages.
public  SqlExceptiongetNextException()
    
public  SQLExceptiongetSQLException()
    
public  StringgetSQLState()
    
public  SqlcagetSqlca()
    
public  java.lang.ThrowablegetThrowable()
    
public static  SqlExceptionjavaException(LogWriter logWriter, Throwable e)
    
public  voidprintTrace(java.io.PrintWriter printWriter, String header)
    
 voidsetBatchPositionLabel(int index)
    
public static  voidsetExceptionFactory(SQLExceptionFactory factory)
    
public  voidsetNextException(SqlException nextException)
    
public  voidsetNextException(SQLException nextException)
    
protected  voidsetThrowable(Throwable throwable)
    

Field Detail
BATCH_POSITION_ID
final public static String BATCH_POSITION_ID(Code)



CAUSED_BY_EXCEPTION_ID
final public static String CAUSED_BY_EXCEPTION_ID(Code)



CLIENT_MESSAGE_RESOURCE_NAME
public static String CLIENT_MESSAGE_RESOURCE_NAME(Code)



DEFAULT_ERRCODE
final protected static int DEFAULT_ERRCODE(Code)



causeString_
protected String causeString_(Code)



errorcode_
protected int errorcode_(Code)



exceptionFactory
protected static SQLExceptionFactory exceptionFactory(Code)



message_
protected String message_(Code)



nextException_
protected SqlException nextException_(Code)



sqlca_
protected Sqlca sqlca_(Code)



sqlstate_
protected String sqlstate_(Code)



throwable_
protected Throwable throwable_(Code)



wrappedException_
protected SQLException wrappedException_(Code)
The wrapped SQLException, if one exists




Constructor Detail
SqlException
public SqlException(LogWriter logwriter, ClientMessageId msgid, Object[] args, Throwable cause)(Code)
Create a SqlException. This constructor is the "base" constructor; all other constructors (which take a ClientMessageId) delegate to this constructor
Parameters:
  logwriter - Can be null, but if provided, it is used to log this exception
Parameters:
  msgid - The message id for this message. ClientMessageId is a simple type-safewrapper for org.apache.derby.shared.common.reference.SQLState message idstrings.
Parameters:
  args - The set of substitution arguments for the message. The Java messageformatter will substitute these arguments into the internationalizedstrings using the substitution ({0}, {1}, etc.) markers in the string.Any object can be passed, but if you want it to be readable, make suretoString() for the object returns something useful.
Parameters:
  cause - Can be null. Indicates the cause of this exception. If this isan instance of SqlException or java.sql.SQLException then the exceptionis chained into the nextException chain. Otherwise it is chainedusing initCause(). On JDK 1.3, since initCause() does not exist,a non-SQL exception can not be chained. Instead, the exception classand message text is appended to the message for this exception.



SqlException
public SqlException(LogWriter logWriter, ClientMessageId msgid, Object[] args, SqlCode sqlcode, Throwable t)(Code)



SqlException
public SqlException(LogWriter logWriter, ClientMessageId msgid, Object[] args, SqlCode sqlcode)(Code)



SqlException
public SqlException(LogWriter logWriter, ClientMessageId msgid, SqlCode sqlcode)(Code)



SqlException
public SqlException(LogWriter logWriter, ClientMessageId msgid, Object arg1, SqlCode sqlcode)(Code)



SqlException
public SqlException(LogWriter logWriter, ClientMessageId msgid, Object arg1, Object arg2, SqlCode sqlcode)(Code)



SqlException
public SqlException(LogWriter logwriter, ClientMessageId msgid, Throwable cause)(Code)



SqlException
public SqlException(LogWriter logwriter, ClientMessageId msgid, Object[] args)(Code)



SqlException
public SqlException(LogWriter logwriter, ClientMessageId msgid)(Code)



SqlException
public SqlException(LogWriter logwriter, ClientMessageId msgid, Object arg1)(Code)



SqlException
public SqlException(LogWriter logwriter, ClientMessageId msgid, Object arg1, Throwable cause)(Code)



SqlException
public SqlException(LogWriter logwriter, ClientMessageId msgid, Object arg1, Object arg2, Throwable cause)(Code)



SqlException
public SqlException(LogWriter logwriter, ClientMessageId msgid, Object arg1, Object arg2)(Code)



SqlException
public SqlException(LogWriter logwriter, ClientMessageId msgid, Object arg1, Object arg2, Object arg3)(Code)



SqlException
public SqlException(LogWriter logWriter, Sqlca sqlca)(Code)



SqlException
protected SqlException(LogWriter logWriter, String reason, String sqlState, int errorCode)(Code)



SqlException
protected SqlException(LogWriter logWriter, java.lang.Throwable throwable, String reason, String sqlState, int errorCode)(Code)



SqlException
public SqlException(SQLException wrapme)(Code)
Wrap a SQLException in a SqlException. This is used by internal routines so the don't have to throw SQLException, which, through the chain of dependencies would force more and more internal routines to throw SQLException




Method Detail
copyAsUnchainedSQLException
SqlException copyAsUnchainedSQLException(LogWriter logWriter)(Code)



getErrorCode
public int getErrorCode()(Code)



getMessage
public String getMessage()(Code)



getMessageUtil
public static MessageUtil getMessageUtil()(Code)
This routine provides singleton access to an instance of MessageUtil that is constructed for client messages. It is recommended to use this singleton rather than create your own instance. The only time you need this instance is if you need to directly format an internationalized message string. In most instances this is done for you when you invoke a SqlException constructor a singleton instance of MessageUtil configured for clientmessages



getNextException
public SqlException getNextException()(Code)



getSQLException
public SQLException getSQLException()(Code)
Convert this SqlException into a java.sql.SQLException



getSQLState
public String getSQLState()(Code)



getSqlca
public Sqlca getSqlca()(Code)



getThrowable
public java.lang.Throwable getThrowable()(Code)



javaException
public static SqlException javaException(LogWriter logWriter, Throwable e)(Code)
Helper method to construct an exception which basically says that we encountered an underlying Java exception



printTrace
public void printTrace(java.io.PrintWriter printWriter, String header)(Code)



setBatchPositionLabel
void setBatchPositionLabel(int index)(Code)



setExceptionFactory
public static void setExceptionFactory(SQLExceptionFactory factory)(Code)
Sets the exceptionFactory to be used for creating SQLException
Parameters:
  factory - SQLExceptionFactory



setNextException
public void setNextException(SqlException nextException)(Code)



setNextException
public void setNextException(SQLException nextException)(Code)



setThrowable
protected void setThrowable(Throwable throwable)(Code)
Set the cause of this exception based on its type and the current runtime version of Java




Methods inherited from java.lang.Throwable
native public synchronized Throwable fillInStackTrace()(Code)(Java Doc)
public Throwable getCause()(Code)(Java Doc)
public String getLocalizedMessage()(Code)(Java Doc)
public String getMessage()(Code)(Java Doc)
public StackTraceElement[] getStackTrace()(Code)(Java Doc)
public synchronized Throwable initCause(Throwable cause)(Code)(Java Doc)
public void printStackTrace()(Code)(Java Doc)
public void printStackTrace(PrintStream s)(Code)(Java Doc)
public void printStackTrace(PrintWriter s)(Code)(Java Doc)
public void setStackTrace(StackTraceElement[] stackTrace)(Code)(Java Doc)
public String toString()(Code)(Java Doc)

Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(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.