public final class PrebakeErrorFactory extends Object
PrebakeError instances.
The PrebakeErrors generated by this class can be customized with
additional context objects to facilitate debugging.
| Constructor and Description |
|---|
PrebakeErrorFactory() |
| Modifier and Type | Method and Description |
|---|---|
static <E extends com.atlassian.plugin.web.baseconditions.BaseCondition> |
from(E condition)
Creates a new
PrebakeError that wraps a resource-tainting condition. |
static <E extends TransformerUrlBuilder> |
from(E transformer)
Creates a new
PrebakeError that wraps a resource-tainting transformer. |
static PrebakeError |
from(String message)
Creates a new
PrebakeError containing a simple text message. |
static PrebakeError |
from(String message,
Throwable cause)
Creates a new
PrebakeError that wraps a Throwable object. |
static PrebakeError |
from(Throwable cause)
Creates a new
PrebakeError that wraps a Throwable object. |
public static <E extends com.atlassian.plugin.web.baseconditions.BaseCondition> PrebakeError from(E condition)
PrebakeError that wraps a resource-tainting condition.E - condition typecondition - condition that generated the prebake errorPrebakeError wrapping a conditionpublic static <E extends TransformerUrlBuilder> PrebakeError from(E transformer)
PrebakeError that wraps a resource-tainting transformer.E - transformer typetransformer - transformer that generated the prebake errorPrebakeError wrapping a transformerpublic static PrebakeError from(String message, Throwable cause)
PrebakeError that wraps a Throwable object.message - additional error messagecause - cause of the errorPrebakeError wrapping a Throwablepublic static PrebakeError from(Throwable cause)
PrebakeError that wraps a Throwable object.cause - cause of the errorPrebakeError wrapping a Throwablepublic static PrebakeError from(String message)
PrebakeError containing a simple text message.message - error messagePrebakeError containing a simple text messageCopyright © 2019 Atlassian. All rights reserved.