Skip to content

Commit

Permalink
Added builder overload
Browse files Browse the repository at this point in the history
  • Loading branch information
phax committed Jun 18, 2024
1 parent 6cb503a commit 3cb06fc
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
import javax.annotation.Nullable;

import com.helger.commons.ValueEnforcer;
import com.helger.commons.error.IError;
import com.helger.commons.error.SingleError;
import com.helger.commons.error.level.IErrorLevel;
import com.helger.commons.error.text.IHasErrorText;
Expand Down Expand Up @@ -123,6 +124,13 @@ public SVRLErrorBuilder (@Nonnull final String sTest)
test (sTest);
}

public SVRLErrorBuilder (@Nonnull final IError aError)
{
super (aError);
if (aError instanceof SVRLResourceError)
test (((SVRLResourceError) aError).getTest ());
}

@Nonnull
public final SVRLErrorBuilder test (@Nonnull final String sTest)
{
Expand Down

0 comments on commit 3cb06fc

Please sign in to comment.