public class DBConnection.Error
extends java.lang.Object
Constructor and Description |
---|
Error()
Constructor of this class
|
Modifier and Type | Method and Description |
---|---|
boolean |
isErr()
This method returns, if there is an error or not
|
void |
put2Clipboard(java.lang.String toClipboard)
This method puts the value of 'toClipboard' to the clipboard
In case of an SQL-Error, the SQL-Statement will be placed in
such a way and can be used in an external application as well.
|
void |
setErr(boolean err)
Here, an indicator for an error can be set
|
void |
setErrNumber(java.lang.Integer newErrNumber)
Here a error-number (for SQL) can be set
|
void |
setHead(java.lang.String newErrHead)
Here the Dialog-Title of the JOptionPane can be set
|
void |
setText(java.lang.String newErrText)
Here, the Text inside of the JOptionPane can be set
|
void |
show()
Shows the current Error-Message on an OptionPane-MessageDialog.
|
int |
showQuestion()
Shows the current message, will ask the user and returns the User-Answer
|
public void show()
public int showQuestion()
public void setErrNumber(java.lang.Integer newErrNumber)
newErrNumber
- public void setHead(java.lang.String newErrHead)
newErrHead
- public void setText(java.lang.String newErrText)
newErrText
- public void setErr(boolean err)
err
- public boolean isErr()
public void put2Clipboard(java.lang.String toClipboard)
toClipboard
- String which will be placed in the clipboard