Skip to content

Commit

Permalink
Added a constructor for one error code only w/o description.
Browse files Browse the repository at this point in the history
  • Loading branch information
antoniotarricone committed Aug 5, 2024
1 parent 447c0b2 commit 564f354
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 564f354

Please sign in to comment.