Klasse ApplicationException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
de.delinkedde.areashopreborn.application.ApplicationException
- Alle implementierten Schnittstellen:
LocalizedFailure,Serializable
Represents an expected, user-facing application rule violation.
- Siehe auch:
-
Konstruktorübersicht
KonstruktorenKonstruktorBeschreibungApplicationException(String message) Creates an expected application exception.ApplicationException(String messageKey, String fallbackMessage, Map<String, ?> placeholders) Creates a localizable expected application exception. -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungstatic ApplicationExceptionCreates a denied city-management failure.static ApplicationExceptionCreates a denied region-management failure.Returns the fallback template.static ApplicationExceptionCreates an insufficient-funds failure.Returns the YAML message key.Returns untrusted dynamic values that must be inserted without parsing.static ApplicationExceptionCreates a missing-listing failure.static ApplicationExceptionCreates a missing-parent failure.static ApplicationExceptionCreates a denied-access failure.static ApplicationExceptionnotCity()Creates a wrong-region-type failure for a city operation.static ApplicationExceptionCreates a wrong-region-type failure for a parcel operation.static ApplicationExceptionCreates a denied-ownership failure.static ApplicationExceptionCreates a denied-renter failure.static ApplicationExceptionregionNotFound(String name) Creates a localized missing-region failure.Von Klasse geerbte Methoden java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Konstruktordetails
-
ApplicationException
Creates an expected application exception.- Parameter:
message- user-facing explanation
-
ApplicationException
Creates a localizable expected application exception.- Parameter:
messageKey- YAML message pathfallbackMessage- fallback MiniMessage templateplaceholders- safely escaped dynamic placeholder values
-
-
Methodendetails
-
regionNotFound
Creates a localized missing-region failure.- Parameter:
name- requested region name- Gibt zurück:
- expected application failure
-
notCity
Creates a wrong-region-type failure for a city operation.- Gibt zurück:
- localized failure indicating that the selected region is not a city
-
notParcel
Creates a wrong-region-type failure for a parcel operation.- Gibt zurück:
- localized failure indicating that the selected region is not a parcel
-
noParentCity
Creates a missing-parent failure.- Gibt zurück:
- localized failure indicating that a parcel has no managed parent city
-
cannotManageCity
Creates a denied city-management failure.- Gibt zurück:
- localized failure for denied city management
-
cannotManageRegion
Creates a denied region-management failure.- Gibt zurück:
- localized failure for denied region management
-
noActiveListing
Creates a missing-listing failure.- Gibt zurück:
- localized failure for a region without an active listing
-
insufficientFunds
Creates an insufficient-funds failure.- Gibt zurück:
- localized insufficient-funds failure
-
noRegionAccess
Creates a denied-access failure.- Gibt zurück:
- localized failure for denied region access
-
notRegionOwner
Creates a denied-ownership failure.- Gibt zurück:
- localized failure for a player who does not own the region
-
notRenter
Creates a denied-renter failure.- Gibt zurück:
- localized failure for a player who is not the current renter
-
messageKey
Beschreibung aus Schnittstelle kopiert:LocalizedFailureReturns the YAML message key.- Angegeben von:
messageKeyin SchnittstelleLocalizedFailure- Gibt zurück:
- configured message path
-
fallbackMessage
Beschreibung aus Schnittstelle kopiert:LocalizedFailureReturns the fallback template.- Angegeben von:
fallbackMessagein SchnittstelleLocalizedFailure- Gibt zurück:
- fallback message
-
messagePlaceholders
Beschreibung aus Schnittstelle kopiert:LocalizedFailureReturns untrusted dynamic values that must be inserted without parsing.- Angegeben von:
messagePlaceholdersin SchnittstelleLocalizedFailure- Gibt zurück:
- immutable placeholder map
-