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 StringgetMacroName()StringgetMessage()-
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, @CheckForNull Throwable cause)
-
MacroEvaluationException
public MacroEvaluationException(@CheckForNull String message, @Nonnull String macroName)
-
MacroEvaluationException
public MacroEvaluationException(@CheckForNull String message, @CheckForNull String macroName, @CheckForNull Throwable cause)
-
-
Method Detail
-
getMacroName
@CheckForNull public String getMacroName()
-
getMessage
public String getMessage()
- Overrides:
getMessagein classThrowable
-
-