diff --git a/src/main/java/org/gcube/informationsystem/resourceregistry/api/exceptions/context/ContextCreationException.java b/src/main/java/org/gcube/informationsystem/resourceregistry/api/exceptions/context/ContextCreationException.java index 1945ec0..e79276c 100644 --- a/src/main/java/org/gcube/informationsystem/resourceregistry/api/exceptions/context/ContextCreationException.java +++ b/src/main/java/org/gcube/informationsystem/resourceregistry/api/exceptions/context/ContextCreationException.java @@ -16,4 +16,12 @@ public class ContextCreationException extends ContextException { public ContextCreationException(String message) { super(message); } + + public ContextCreationException(Throwable cause) { + super(cause); + } + + public ContextCreationException(String message, Throwable cause) { + super(message, cause); + } } diff --git a/src/main/java/org/gcube/informationsystem/resourceregistry/api/exceptions/context/ContextException.java b/src/main/java/org/gcube/informationsystem/resourceregistry/api/exceptions/context/ContextException.java index a1a0844..0765f70 100644 --- a/src/main/java/org/gcube/informationsystem/resourceregistry/api/exceptions/context/ContextException.java +++ b/src/main/java/org/gcube/informationsystem/resourceregistry/api/exceptions/context/ContextException.java @@ -25,5 +25,4 @@ public class ContextException extends ResourceRegistryException { super(message, cause); } - } diff --git a/src/main/java/org/gcube/informationsystem/resourceregistry/api/exceptions/context/ContextMoveException.java b/src/main/java/org/gcube/informationsystem/resourceregistry/api/exceptions/context/ContextMoveException.java index e1123c3..a8af9bc 100644 --- a/src/main/java/org/gcube/informationsystem/resourceregistry/api/exceptions/context/ContextMoveException.java +++ b/src/main/java/org/gcube/informationsystem/resourceregistry/api/exceptions/context/ContextMoveException.java @@ -14,6 +14,13 @@ public class ContextMoveException extends ContextException { public ContextMoveException(String message) { super(message); } - + + public ContextMoveException(Throwable cause) { + super(cause); + } + + public ContextMoveException(String message, Throwable cause) { + super(message, cause); + } } diff --git a/src/main/java/org/gcube/informationsystem/resourceregistry/api/exceptions/context/ContextNotFoundException.java b/src/main/java/org/gcube/informationsystem/resourceregistry/api/exceptions/context/ContextNotFoundException.java index 5ba3bd4..ef1cf3a 100644 --- a/src/main/java/org/gcube/informationsystem/resourceregistry/api/exceptions/context/ContextNotFoundException.java +++ b/src/main/java/org/gcube/informationsystem/resourceregistry/api/exceptions/context/ContextNotFoundException.java @@ -17,5 +17,12 @@ public class ContextNotFoundException extends ContextException implements NotFou super(message); } + public ContextNotFoundException(Throwable cause) { + super(cause); + } + + public ContextNotFoundException(String message, Throwable cause) { + super(message, cause); + } } diff --git a/src/main/java/org/gcube/informationsystem/resourceregistry/api/exceptions/entity/facet/FacetAlreadyPresentException.java b/src/main/java/org/gcube/informationsystem/resourceregistry/api/exceptions/entity/facet/FacetAlreadyPresentException.java index 2250290..d3c9db2 100644 --- a/src/main/java/org/gcube/informationsystem/resourceregistry/api/exceptions/entity/facet/FacetAlreadyPresentException.java +++ b/src/main/java/org/gcube/informationsystem/resourceregistry/api/exceptions/entity/facet/FacetAlreadyPresentException.java @@ -18,5 +18,13 @@ public class FacetAlreadyPresentException extends EntityAlreadyPresentException public FacetAlreadyPresentException(String message) { super(message); } + + public FacetAlreadyPresentException(Throwable cause) { + super(cause); + } + + public FacetAlreadyPresentException(String message, Throwable cause) { + super(message, cause); + } } diff --git a/src/main/java/org/gcube/informationsystem/resourceregistry/api/exceptions/query/InvalidQueryException.java b/src/main/java/org/gcube/informationsystem/resourceregistry/api/exceptions/query/InvalidQueryException.java index 1761dac..6db868c 100644 --- a/src/main/java/org/gcube/informationsystem/resourceregistry/api/exceptions/query/InvalidQueryException.java +++ b/src/main/java/org/gcube/informationsystem/resourceregistry/api/exceptions/query/InvalidQueryException.java @@ -12,14 +12,17 @@ public class InvalidQueryException extends ResourceRegistryException { * Generated Serial Version UID */ private static final long serialVersionUID = -5146082051190251441L; - - public InvalidQueryException(String message, Throwable cause) { - super(message, cause); - } - + public InvalidQueryException(String message) { super(message); } - + + public InvalidQueryException(Throwable cause) { + super(cause); + } + + public InvalidQueryException(String message, Throwable cause) { + super(message, cause); + } }