@PublicApi public static class StructureException.Builder extends Object
A builder for StructureException
.
Usage example:
throw StructureErrors.GENERIC_ERROR.forStructure(structureId).causedBy(e).withoutMessage();
Constructor and Description |
---|
Builder(StructureError error) |
Modifier and Type | Method and Description |
---|---|
StructureException.Builder |
causedBy(Throwable cause) |
StructureException.Builder |
forIssue(long issueId) |
StructureException.Builder |
forItem(ItemIdentity item) |
StructureException.Builder |
forRow(Long row) |
StructureException.Builder |
forStructure(Long structure) |
StructureException.Builder |
forView(Long view) |
StructureException |
withLocalizedMessage(I18nText message) |
StructureException |
withLocalizedMessage(String messageKey,
Object... messageParameters) |
StructureException |
withMessage(String message) |
StructureException |
withoutMessage() |
public Builder(StructureError error)
@NotNull public StructureException withLocalizedMessage(@Nullable String messageKey, Object... messageParameters)
@NotNull public StructureException withLocalizedMessage(@Nullable I18nText message)
@NotNull public StructureException withMessage(@Nullable String message)
@NotNull public StructureException withoutMessage()
@NotNull public StructureException.Builder forStructure(@Nullable Long structure)
@NotNull public StructureException.Builder forView(@Nullable Long view)
@NotNull public StructureException.Builder forRow(@Nullable Long row)
@NotNull public StructureException.Builder forItem(@Nullable ItemIdentity item)
@NotNull public StructureException.Builder forIssue(long issueId)
@NotNull public StructureException.Builder causedBy(Throwable cause)
Copyright © 2024 Tempo Software. All Rights Reserved.