Skip to content

Commit

Permalink
get hint
Browse files Browse the repository at this point in the history
  • Loading branch information
janolaveide committed Mar 2, 2021
1 parent b74cf6d commit e7ad9f9
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@

public class FunksjonellException extends VLException {

private final String hint;

public FunksjonellException(String kode, String msg) {
this(kode, msg, null);
}
Expand All @@ -24,5 +26,10 @@ public FunksjonellException(String kode, String msg, String hint, Throwable t) {
@Deprecated(since = "3.0.x", forRemoval = true)
public FunksjonellException(FunksjonellFeil feil) {
super(feil);
this.hint = feil.getLøsningsforslag();
}

public String getLøsningsforslag() {
return hint;
}
}

0 comments on commit e7ad9f9

Please sign in to comment.