Skip to content

Commit

Permalink
feat: Added a constructor for one error code only w/o description. (#28)
Browse files Browse the repository at this point in the history
  • Loading branch information
antoniotarricone authored Aug 5, 2024
1 parent 447c0b2 commit b57ca4b
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/main/java/it/pagopa/swclient/mil/bean/Errors.java
Original file line number Diff line number Diff line change
Expand Up @@ -64,4 +64,15 @@ public Errors(String error, String description) {
errors = List.of(error);
descriptions = List.of(description);
}

/**
* <p>
* Constructor for a single error w/o description.
* </p>
*
* @param error Error code.
*/
public Errors(String error) {
errors = List.of(error);
}
}

0 comments on commit b57ca4b

Please sign in to comment.