Package org.jenkinsci.plugins.tokenmacro
Class MacroEvaluationException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- org.jenkinsci.plugins.tokenmacro.MacroEvaluationException
-
- All Implemented Interfaces:
Serializable
public class MacroEvaluationException extends Exception
Signals that the evaluation of the macro has failed, and the error should be presented to users without a stack trace.- Author:
- Kohsuke Kawaguchi
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description MacroEvaluationException(String message)
MacroEvaluationException(String message, String macroName)
MacroEvaluationException(String message, String macroName, Throwable cause)
MacroEvaluationException(String message, Throwable cause)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getMacroName()
String
getMessage()
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
MacroEvaluationException
public MacroEvaluationException(@NonNull String message)
-
MacroEvaluationException
public MacroEvaluationException(@NonNull String message, @CheckForNull Throwable cause)
-
MacroEvaluationException
public MacroEvaluationException(@CheckForNull String message, @NonNull String macroName)
-
-
Method Detail
-
getMacroName
@CheckForNull public String getMacroName()
-
getMessage
public String getMessage()
- Overrides:
getMessage
in classThrowable
-
-