Skip to content

Commit

Permalink
add throws comment
Browse files Browse the repository at this point in the history
  • Loading branch information
tonisives committed May 12, 2021
1 parent c3f36f1 commit 0a3169c
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ public Failure getFailure() {
/**
* @return The failure reason.
* @deprecated use {@link #getFailure()} instead
* @throws CommandParseException if cannot convert from Reason to Failure.Reason
*/
// TODO: 11/5/21 remove Reason deprecations after may 2022
@Deprecated
Expand All @@ -71,6 +72,7 @@ public PropertyComponentFailure(Bytes bytes) throws CommandParseException {
* @param failureReason The failure reason.
* @param description The failure description.
* @deprecated use {@link #PropertyComponentFailure(Failure)} instead
* @throws CommandParseException if cannot convert from Reason to Failure.Reason
*/
public PropertyComponentFailure(Reason failureReason, @Nullable String description) throws CommandParseException {
super(IDENTIFIER, 3 + description.length());
Expand Down

0 comments on commit 0a3169c

Please sign in to comment.