java.lang.Object
java.lang.Throwable
java.lang.Exception
org.snapfx.persistence.DockLayoutLoadException
- All Implemented Interfaces:
Serializable
Signals a failure while loading a dock layout JSON document.
Includes the JSON location where the failure was detected.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionDockLayoutLoadException(String message, String location) Creates a new layout-load exception.DockLayoutLoadException(String message, String location, Throwable cause) Creates a new layout-load exception with an underlying cause. -
Method Summary
Modifier and TypeMethodDescriptionReturns the JSON location where the error was detected.Returns a user-facing message including JSON location details when available.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
DockLayoutLoadException
Creates a new layout-load exception.- Parameters:
message- human-readable error messagelocation- JSON location/path (for example$.root.children[0])
-
DockLayoutLoadException
Creates a new layout-load exception with an underlying cause.- Parameters:
message- human-readable error messagelocation- JSON location/path (for example$.root.children[0])cause- underlying exception
-
-
Method Details
-
getLocation
Returns the JSON location where the error was detected.- Returns:
- JSON location/path, or
null
-
toDisplayMessage
Returns a user-facing message including JSON location details when available.- Returns:
- formatted display message
-