public DatasetEditorError(ConnectionHandler connectionHandler, Exception exception) {
this.message = exception.getMessage();
if (exception instanceof SQLException) {
DatabaseMessageParserInterface messageParserInterface = connectionHandler.getInterfaceProvider().getMessageParserInterface();
DatabaseObjectIdentifier objectIdentifier = messageParserInterface.identifyObject(exception.getMessage());
if (objectIdentifier != null) {
messageObject = connectionHandler.getObjectBundle().getObject(objectIdentifier);
}
}
}