DataException
Contents
[
Hide
]Inheritance: java.lang.Object, java.lang.Throwable, java.lang.Exception, java.lang.RuntimeException, java.lang.IllegalStateException
public class DataException extends IllegalStateException
Represents the exception that is thrown when errors are generated using ADO.NET components.
Constructors
Constructor | Description |
---|---|
DataException(String s) | Initializes a new instance of the DataException class with the specified string. |
DataException(Exception ex) | Initializes a new instance of this class. |
Methods
DataException(String s)
public DataException(String s)
Initializes a new instance of the DataException class with the specified string.
Parameters:
Parameter | Type | Description |
---|---|---|
s | java.lang.String | The string to display when the exception is thrown. |
DataException(Exception ex)
public DataException(Exception ex)
Initializes a new instance of this class.
Parameters:
Parameter | Type | Description |
---|---|---|
ex | java.lang.Exception |
addSuppressed(Throwable arg0)
public final synchronized void addSuppressed(Throwable arg0)
Parameters:
Parameter | Type | Description |
---|---|---|
arg0 | java.lang.Throwable |
fillInStackTrace()
public synchronized Throwable fillInStackTrace()
Returns: java.lang.Throwable
getCause()
public synchronized Throwable getCause()
Returns: java.lang.Throwable
getLocalizedMessage()
public String getLocalizedMessage()
Returns: java.lang.String
getMessage()
public String getMessage()
Returns: java.lang.String
getStackTrace()
public StackTraceElement[] getStackTrace()
Returns: java.lang.StackTraceElement[]
getSuppressed()
public final synchronized Throwable[] getSuppressed()
Returns: java.lang.Throwable[]
initCause(Throwable arg0)
public synchronized Throwable initCause(Throwable arg0)
Parameters:
Parameter | Type | Description |
---|---|---|
arg0 | java.lang.Throwable |
Returns: java.lang.Throwable
printStackTrace()
public void printStackTrace()
printStackTrace(PrintStream arg0)
public void printStackTrace(PrintStream arg0)
Parameters:
Parameter | Type | Description |
---|---|---|
arg0 | java.io.PrintStream |
printStackTrace(PrintWriter arg0)
public void printStackTrace(PrintWriter arg0)
Parameters:
Parameter | Type | Description |
---|---|---|
arg0 | java.io.PrintWriter |
setStackTrace(StackTraceElement[] arg0)
public void setStackTrace(StackTraceElement[] arg0)
Parameters:
Parameter | Type | Description |
---|---|---|
arg0 | java.lang.StackTraceElement[] |
toString()
public String toString()
Returns: java.lang.String