diff --git a/src/main/java/it/pagopa/swclient/mil/bean/Errors.java b/src/main/java/it/pagopa/swclient/mil/bean/Errors.java index 712baf3..d915718 100644 --- a/src/main/java/it/pagopa/swclient/mil/bean/Errors.java +++ b/src/main/java/it/pagopa/swclient/mil/bean/Errors.java @@ -64,4 +64,15 @@ public Errors(String error, String description) { errors = List.of(error); descriptions = List.of(description); } + + /** + *

+ * Constructor for a single error w/o description. + *

+ * + * @param error Error code. + */ + public Errors(String error) { + errors = List.of(error); + } }