Package com.mckoi.database.jdbc
Class MSQLException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.sql.SQLException
com.mckoi.database.jdbc.MSQLException
- All Implemented Interfaces:
Serializable
,Iterable<Throwable>
SQLException used by the McKoi database engine.
- Author:
- Tobias Downer
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionMSQLException
(String reason) MSQLException
(String reason, String SQLState) MSQLException
(String reason, String SQLState, int vendorCode) MSQLException
(String reason, String server_error_msg, int vendor_code, String server_error_trace) MSQL Specific.MSQLException
(String reason, String server_error_msg, int vendor_code, Throwable server_error) MSQL Specific. -
Method Summary
Modifier and TypeMethodDescriptionReturns the error message that generated this exception.Returns the server side stack trace for this error.void
Overwrites the print stack trace information with some more detailed information about the error.void
Overwrites the print stack trace information with some more detailed information about the error.void
Overwrites the print stack trace information with some more detailed information about the error.static SQLException
Returns an SQLException that is used for all unsupported features of the JDBC driver.static SQLException
Generates the feature not supported exception.Methods inherited from class java.sql.SQLException
getErrorCode, getNextException, getSQLState, iterator, setNextException
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, setStackTrace, toString
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
MSQLException
-
MSQLException
-
MSQLException
-
MSQLException
public MSQLException() -
MSQLException
public MSQLException(String reason, String server_error_msg, int vendor_code, Throwable server_error) MSQL Specific. This stores the reason, the server exception message, and the server stack trace. -
MSQLException
public MSQLException(String reason, String server_error_msg, int vendor_code, String server_error_trace) MSQL Specific. This stores the reason, the server exception message, and the server stack trace as a string.
-
-
Method Details
-
getServerErrorMsg
Returns the error message that generated this exception. -
getServerErrorStackTrace
Returns the server side stack trace for this error. -
printStackTrace
public void printStackTrace()Overwrites the print stack trace information with some more detailed information about the error.- Overrides:
printStackTrace
in classThrowable
-
printStackTrace
Overwrites the print stack trace information with some more detailed information about the error.- Overrides:
printStackTrace
in classThrowable
-
printStackTrace
Overwrites the print stack trace information with some more detailed information about the error.- Overrides:
printStackTrace
in classThrowable
-
unsupported
Returns an SQLException that is used for all unsupported features of the JDBC driver. -
unsupported16
Generates the feature not supported exception.
-