Skip to content

Commit

Permalink
Allow specifying a cause in MissingNestedSetException.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 365161375
  • Loading branch information
justinhorvitz authored and copybara-github committed Mar 26, 2021
1 parent 257e9ea commit b1f1511
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,13 @@ public class NestedSetStore {
* that does not exist in the store.
*/
public static final class MissingNestedSetException extends Exception {

public MissingNestedSetException(ByteString fingerprint) {
super("No NestedSet data for " + fingerprint);
this(fingerprint, /*cause=*/ null);
}

public MissingNestedSetException(ByteString fingerprint, @Nullable Throwable cause) {
super("No NestedSet data for " + fingerprint, cause);
}
}

Expand Down

0 comments on commit b1f1511

Please sign in to comment.