Skip to content
Snippets Groups Projects
Unverified Commit daba6d76 authored by Martin Weise's avatar Martin Weise
Browse files

Better error message handling in the frontend

- Propagation way more transparent to users
- Add fallback message in case no error message from backend

ref #396
parent e75a9334
No related branches found
No related tags found
4 merge requests!231CI: Remove build for log-service,!228Better error message handling in the frontend,!223Release of version 1.4.0,!217Resolve "Fix the unit independent search"
Showing
with 26 additions and 26 deletions
...@@ -221,7 +221,7 @@ CREATE TABLE IF NOT EXISTS `mdb_constraints_foreign_key` ...@@ -221,7 +221,7 @@ CREATE TABLE IF NOT EXISTS `mdb_constraints_foreign_key`
on_delete VARCHAR(50) NULL, on_delete VARCHAR(50) NULL,
position INT NULL, position INT NULL,
PRIMARY KEY (fkid), PRIMARY KEY (fkid),
FOREIGN KEY (tid) REFERENCES mdb_tables (id), FOREIGN KEY (tid) REFERENCES mdb_tables (id) ON DELETE CASCADE,
FOREIGN KEY (rtid) REFERENCES mdb_tables (id) FOREIGN KEY (rtid) REFERENCES mdb_tables (id)
) WITH SYSTEM VERSIONING; ) WITH SYSTEM VERSIONING;
...@@ -243,7 +243,7 @@ CREATE TABLE IF NOT EXISTS `mdb_constraints_unique` ...@@ -243,7 +243,7 @@ CREATE TABLE IF NOT EXISTS `mdb_constraints_unique`
tid BIGINT NOT NULL, tid BIGINT NOT NULL,
position INT NULL, position INT NULL,
PRIMARY KEY (uid), PRIMARY KEY (uid),
FOREIGN KEY (tid) REFERENCES mdb_tables (id) FOREIGN KEY (tid) REFERENCES mdb_tables (id) ON DELETE CASCADE
); );
CREATE TABLE IF NOT EXISTS `mdb_constraints_unique_columns` CREATE TABLE IF NOT EXISTS `mdb_constraints_unique_columns`
...@@ -253,7 +253,7 @@ CREATE TABLE IF NOT EXISTS `mdb_constraints_unique_columns` ...@@ -253,7 +253,7 @@ CREATE TABLE IF NOT EXISTS `mdb_constraints_unique_columns`
cid BIGINT NOT NULL, cid BIGINT NOT NULL,
PRIMARY KEY (id), PRIMARY KEY (id),
FOREIGN KEY (uid) REFERENCES mdb_constraints_unique (uid), FOREIGN KEY (uid) REFERENCES mdb_constraints_unique (uid),
FOREIGN KEY (cid) REFERENCES mdb_columns (id) FOREIGN KEY (cid) REFERENCES mdb_columns (id) ON DELETE CASCADE
) WITH SYSTEM VERSIONING; ) WITH SYSTEM VERSIONING;
CREATE TABLE IF NOT EXISTS `mdb_constraints_checks` CREATE TABLE IF NOT EXISTS `mdb_constraints_checks`
...@@ -262,7 +262,7 @@ CREATE TABLE IF NOT EXISTS `mdb_constraints_checks` ...@@ -262,7 +262,7 @@ CREATE TABLE IF NOT EXISTS `mdb_constraints_checks`
tid BIGINT NOT NULL, tid BIGINT NOT NULL,
checks VARCHAR(255) NOT NULL, checks VARCHAR(255) NOT NULL,
PRIMARY KEY (id), PRIMARY KEY (id),
FOREIGN KEY (tid) REFERENCES mdb_tables (id) FOREIGN KEY (tid) REFERENCES mdb_tables (id) ON DELETE CASCADE
) WITH SYSTEM VERSIONING; ) WITH SYSTEM VERSIONING;
CREATE TABLE IF NOT EXISTS `mdb_concepts` CREATE TABLE IF NOT EXISTS `mdb_concepts`
......
...@@ -13,7 +13,7 @@ public class AccessDeniedException extends IOException { ...@@ -13,7 +13,7 @@ public class AccessDeniedException extends IOException {
} }
public AccessDeniedException(String msg, Throwable thr) { public AccessDeniedException(String msg, Throwable thr) {
super(msg, thr); super(msg + ": " + thr.getLocalizedMessage(), thr);
} }
public AccessDeniedException(Throwable thr) { public AccessDeniedException(Throwable thr) {
......
...@@ -11,7 +11,7 @@ public class AmqpException extends Exception { ...@@ -11,7 +11,7 @@ public class AmqpException extends Exception {
} }
public AmqpException(String msg, Throwable thr) { public AmqpException(String msg, Throwable thr) {
super(msg, thr); super(msg + ": " + thr.getLocalizedMessage(), thr);
} }
public AmqpException(Throwable thr) { public AmqpException(Throwable thr) {
......
...@@ -11,7 +11,7 @@ public class ArbitraryPrimaryKeysException extends Exception { ...@@ -11,7 +11,7 @@ public class ArbitraryPrimaryKeysException extends Exception {
} }
public ArbitraryPrimaryKeysException(String msg, Throwable thr) { public ArbitraryPrimaryKeysException(String msg, Throwable thr) {
super(msg, thr); super(msg + ": " + thr.getLocalizedMessage(), thr);
} }
public ArbitraryPrimaryKeysException(Throwable thr) { public ArbitraryPrimaryKeysException(Throwable thr) {
......
...@@ -11,7 +11,7 @@ public class BannerMessageNotFoundException extends Exception { ...@@ -11,7 +11,7 @@ public class BannerMessageNotFoundException extends Exception {
} }
public BannerMessageNotFoundException(String msg, Throwable thr) { public BannerMessageNotFoundException(String msg, Throwable thr) {
super(msg, thr); super(msg + ": " + thr.getLocalizedMessage(), thr);
} }
public BannerMessageNotFoundException(Throwable thr) { public BannerMessageNotFoundException(Throwable thr) {
......
...@@ -13,7 +13,7 @@ public class BrokerMalformedException extends IOException { ...@@ -13,7 +13,7 @@ public class BrokerMalformedException extends IOException {
} }
public BrokerMalformedException(String msg, Throwable thr) { public BrokerMalformedException(String msg, Throwable thr) {
super(msg, thr); super(msg + ": " + thr.getLocalizedMessage(), thr);
} }
public BrokerMalformedException(Throwable thr) { public BrokerMalformedException(Throwable thr) {
......
...@@ -11,7 +11,7 @@ public class BrokerRemoteException extends Exception { ...@@ -11,7 +11,7 @@ public class BrokerRemoteException extends Exception {
} }
public BrokerRemoteException(String msg, Throwable thr) { public BrokerRemoteException(String msg, Throwable thr) {
super(msg, thr); super(msg + ": " + thr.getLocalizedMessage(), thr);
} }
public BrokerRemoteException(Throwable thr) { public BrokerRemoteException(Throwable thr) {
......
...@@ -11,7 +11,7 @@ public class BrokerVirtualHostGrantException extends Exception { ...@@ -11,7 +11,7 @@ public class BrokerVirtualHostGrantException extends Exception {
} }
public BrokerVirtualHostGrantException(String msg, Throwable thr) { public BrokerVirtualHostGrantException(String msg, Throwable thr) {
super(msg, thr); super(msg + ": " + thr.getLocalizedMessage(), thr);
} }
public BrokerVirtualHostGrantException(Throwable thr) { public BrokerVirtualHostGrantException(Throwable thr) {
......
...@@ -11,7 +11,7 @@ public class BrokerVirtualHostModificationException extends Exception { ...@@ -11,7 +11,7 @@ public class BrokerVirtualHostModificationException extends Exception {
} }
public BrokerVirtualHostModificationException(String msg, Throwable thr) { public BrokerVirtualHostModificationException(String msg, Throwable thr) {
super(msg, thr); super(msg + ": " + thr.getLocalizedMessage(), thr);
} }
public BrokerVirtualHostModificationException(Throwable thr) { public BrokerVirtualHostModificationException(Throwable thr) {
......
...@@ -11,7 +11,7 @@ public class ColumnParseException extends Exception { ...@@ -11,7 +11,7 @@ public class ColumnParseException extends Exception {
} }
public ColumnParseException(String msg, Throwable thr) { public ColumnParseException(String msg, Throwable thr) {
super(msg, thr); super(msg + ": " + thr.getLocalizedMessage(), thr);
} }
public ColumnParseException(Throwable thr) { public ColumnParseException(Throwable thr) {
......
...@@ -11,7 +11,7 @@ public class ConceptNotFoundException extends Exception { ...@@ -11,7 +11,7 @@ public class ConceptNotFoundException extends Exception {
} }
public ConceptNotFoundException(String msg, Throwable thr) { public ConceptNotFoundException(String msg, Throwable thr) {
super(msg, thr); super(msg + ": " + thr.getLocalizedMessage(), thr);
} }
public ConceptNotFoundException(Throwable thr) { public ConceptNotFoundException(Throwable thr) {
......
...@@ -11,7 +11,7 @@ public class ContainerNotFoundException extends Exception { ...@@ -11,7 +11,7 @@ public class ContainerNotFoundException extends Exception {
} }
public ContainerNotFoundException(String msg, Throwable thr) { public ContainerNotFoundException(String msg, Throwable thr) {
super(msg, thr); super(msg + ": " + thr.getLocalizedMessage(), thr);
} }
public ContainerNotFoundException(Throwable thr) { public ContainerNotFoundException(Throwable thr) {
......
...@@ -10,12 +10,12 @@ public class ContainerStillRunningException extends Exception { ...@@ -10,12 +10,12 @@ public class ContainerStillRunningException extends Exception {
super(msg); super(msg);
} }
public ContainerStillRunningException(String msg, Throwable e) { public ContainerStillRunningException(String msg, Throwable thr) {
super(msg, e); super(msg + ": " + thr.getLocalizedMessage(), thr);
} }
public ContainerStillRunningException(Throwable e) { public ContainerStillRunningException(Throwable thr) {
super(e); super(thr);
} }
} }
...@@ -13,7 +13,7 @@ public class DataDbSidecarException extends IOException { ...@@ -13,7 +13,7 @@ public class DataDbSidecarException extends IOException {
} }
public DataDbSidecarException(String msg, Throwable thr) { public DataDbSidecarException(String msg, Throwable thr) {
super(msg, thr); super(msg + ": " + thr.getLocalizedMessage(), thr);
} }
public DataDbSidecarException(Throwable thr) { public DataDbSidecarException(Throwable thr) {
......
...@@ -11,7 +11,7 @@ public class DataProcessingException extends Exception { ...@@ -11,7 +11,7 @@ public class DataProcessingException extends Exception {
} }
public DataProcessingException(String msg, Throwable thr) { public DataProcessingException(String msg, Throwable thr) {
super(msg, thr); super(msg + ": " + thr.getLocalizedMessage(), thr);
} }
public DataProcessingException(Throwable thr) { public DataProcessingException(Throwable thr) {
......
...@@ -11,7 +11,7 @@ public class DatabaseConnectionException extends Exception { ...@@ -11,7 +11,7 @@ public class DatabaseConnectionException extends Exception {
} }
public DatabaseConnectionException(String msg, Throwable thr) { public DatabaseConnectionException(String msg, Throwable thr) {
super(msg, thr); super(msg + ": " + thr.getLocalizedMessage(), thr);
} }
public DatabaseConnectionException(Throwable thr) { public DatabaseConnectionException(Throwable thr) {
......
...@@ -13,7 +13,7 @@ public class DatabaseMalformedException extends IOException { ...@@ -13,7 +13,7 @@ public class DatabaseMalformedException extends IOException {
} }
public DatabaseMalformedException(String msg, Throwable thr) { public DatabaseMalformedException(String msg, Throwable thr) {
super(msg, thr); super(msg + ": " + thr.getLocalizedMessage(), thr);
} }
public DatabaseMalformedException(Throwable thr) { public DatabaseMalformedException(Throwable thr) {
......
...@@ -13,7 +13,7 @@ public class DatabaseNameExistsException extends IOException { ...@@ -13,7 +13,7 @@ public class DatabaseNameExistsException extends IOException {
} }
public DatabaseNameExistsException(String msg, Throwable thr) { public DatabaseNameExistsException(String msg, Throwable thr) {
super(msg, thr); super(msg + ": " + thr.getLocalizedMessage(), thr);
} }
public DatabaseNameExistsException(Throwable thr) { public DatabaseNameExistsException(Throwable thr) {
......
...@@ -11,7 +11,7 @@ public class DatabaseNotFoundException extends Exception { ...@@ -11,7 +11,7 @@ public class DatabaseNotFoundException extends Exception {
} }
public DatabaseNotFoundException(String msg, Throwable thr) { public DatabaseNotFoundException(String msg, Throwable thr) {
super(msg, thr); super(msg + ": " + thr.getLocalizedMessage(), thr);
} }
public DatabaseNotFoundException(Throwable thr) { public DatabaseNotFoundException(Throwable thr) {
......
...@@ -11,7 +11,7 @@ public class DoiNotFoundException extends Exception { ...@@ -11,7 +11,7 @@ public class DoiNotFoundException extends Exception {
} }
public DoiNotFoundException(String msg, Throwable thr) { public DoiNotFoundException(String msg, Throwable thr) {
super(msg, thr); super(msg + ": " + thr.getLocalizedMessage(), thr);
} }
public DoiNotFoundException(Throwable thr) { public DoiNotFoundException(Throwable thr) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment