Java Doc for SerializableException.java in  » Database-JDBC-Connection-Pool » sequoia-2.10.9 » org » continuent » sequoia » common » exceptions » driver » protocol » 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 JDBC Connection Pool » sequoia 2.10.9 » org.continuent.sequoia.common.exceptions.driver.protocol 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   java.lang.Throwable
      java.lang.Exception
         org.continuent.sequoia.common.exceptions.driver.protocol.SerializableException

All known Subclasses:   org.continuent.sequoia.common.exceptions.driver.protocol.ControllerCoreException,  org.continuent.sequoia.common.exceptions.driver.protocol.BackendDriverException,
SerializableException
public class SerializableException extends Exception (Code)
This class implements our own Exception chain, overriding Throwable as much as possible, relying on our own SerializableStackTraceElement instead of java.lang.StackStraceElement.

The main reason for this class is that java.lang.StackStraceElement is not serializable in JDK 1.4 (the constructor is missing, whereas 1.5 has it). Unfortunately we cannot override everything we would like to because StackTraceElement is also final and so SerializableStackTraceElement cannot subtype+override it.
author:
   Marc Herbert
version:
   1.0




Constructor Summary
 SerializableException(String message, SerializableException cause)
    
 SerializableException(Throwable start)
     Converts a chain of Throwables to a chain of SerializableException.
 SerializableException(DriverBufferedInputStream in)
    

Method Summary
 voidconvertStackTrace(Throwable regularEx)
    
public synchronized  ThrowablefillInStackTrace()
    
public  intgetErrorCode()
     Returns the vendorCode value.
public  StringgetSQLState()
     Returns the sQLState value.
public  SerializableStackTraceElement[]getSerializableStackTrace()
     Returns our private stack trace, the one which is serializable.
public  StackTraceElement[]getStackTrace()
     Please use getSerializedStackTrace() instead.
public  ThrowableinitCause(Throwable cause)
     Override super, adding an extra check because we do not want a mixed chain.
public  voidprintStackTrace()
    
public  voidprintStackTrace(PrintStream s)
     Prints this throwable and its backtrace to the specified print stream.
public  voidprintStackTrace(PrintWriter s)
     Prints this throwable and its backtrace to the specified print writer.
public  voidsendToStream(DriverBufferedOutputStream out)
     Send the Serializable chain to the given stream.
 voidsetErrorCode(int vendorCode)
     Sets the vendorCode value.
public  voidsetSQLState(String sQLState)
     Sets the sQLState value.
public  voidsetStackTrace(StackTraceElement[] ignored)
     This method is deprecated and erases the regular, non serializable stack trace.


Constructor Detail
SerializableException
SerializableException(String message, SerializableException cause)(Code)

See Also:   Exception.Exception(java.lang.Throwable)



SerializableException
SerializableException(Throwable start)(Code)
Converts a chain of Throwables to a chain of SerializableException. The resulting chain has the same length.
Parameters:
  start - head of chain to convert



SerializableException
SerializableException(DriverBufferedInputStream in) throws IOException(Code)
Constructs/reads a new SerializableException chain from the stream




Method Detail
convertStackTrace
void convertStackTrace(Throwable regularEx)(Code)



fillInStackTrace
public synchronized Throwable fillInStackTrace()(Code)

See Also:   java.lang.Throwable.fillInStackTrace



getErrorCode
public int getErrorCode()(Code)
Returns the vendorCode value. Returns the vendorCode.



getSQLState
public String getSQLState()(Code)
Returns the sQLState value. Returns the sQLState.



getSerializableStackTrace
public SerializableStackTraceElement[] getSerializableStackTrace()(Code)
Returns our private stack trace, the one which is serializable. our private stack trace



getStackTrace
public StackTraceElement[] getStackTrace()(Code)
Please use getSerializedStackTrace() instead. Unfortunately StackTraceElement has no constructor in 1.4 and cannot be overriden (final).
See Also:   java.lang.Throwable.getStackTrace



initCause
public Throwable initCause(Throwable cause)(Code)
Override super, adding an extra check because we do not want a mixed chain.
See Also:   java.lang.Throwable.initCause(java.lang.Throwable)



printStackTrace
public void printStackTrace()(Code)

See Also:   java.lang.Throwable.printStackTrace



printStackTrace
public void printStackTrace(PrintStream s)(Code)
Prints this throwable and its backtrace to the specified print stream.
Parameters:
  s - PrintStream to use for output



printStackTrace
public void printStackTrace(PrintWriter s)(Code)
Prints this throwable and its backtrace to the specified print writer.
Parameters:
  s - PrintWriter to use for output



sendToStream
public void sendToStream(DriverBufferedOutputStream out) throws IOException(Code)
Send the Serializable chain to the given stream.
Parameters:
  out - destination stream
throws:
  IOException - stream error



setErrorCode
void setErrorCode(int vendorCode)(Code)
Sets the vendorCode value.
Parameters:
  vendorCode - The vendorCode to set.



setSQLState
public void setSQLState(String sQLState)(Code)
Sets the sQLState value.
Parameters:
  sQLState - The sQLState to set.



setStackTrace
public void setStackTrace(StackTraceElement[] ignored)(Code)
This method is deprecated and erases the regular, non serializable stack trace. Please use setSerializedStackTrace() instead. Unfortunately StackTraceElement has no constructor in 1.4 and cannot be overriden (final).
See Also:   java.lang.Throwable.setStackTrace(java.lang.StackTraceElement[])




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)

w___w__w__.j__a_v_a_2___s.c_o__m__ | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.