Module org.snapfx

Class DockLayoutLoadException

java.lang.Object
java.lang.Throwable
java.lang.Exception
org.snapfx.persistence.DockLayoutLoadException
All Implemented Interfaces:
Serializable

public class DockLayoutLoadException extends Exception
Signals a failure while loading a dock layout JSON document. Includes the JSON location where the failure was detected.
See Also:
  • Constructor Details

    • DockLayoutLoadException

      public DockLayoutLoadException(String message, String location)
      Creates a new layout-load exception.
      Parameters:
      message - human-readable error message
      location - JSON location/path (for example $.root.children[0])
    • DockLayoutLoadException

      public DockLayoutLoadException(String message, String location, Throwable cause)
      Creates a new layout-load exception with an underlying cause.
      Parameters:
      message - human-readable error message
      location - JSON location/path (for example $.root.children[0])
      cause - underlying exception
  • Method Details

    • getLocation

      public String getLocation()
      Returns the JSON location where the error was detected.
      Returns:
      JSON location/path, or null
    • toDisplayMessage

      public String toDisplayMessage()
      Returns a user-facing message including JSON location details when available.
      Returns:
      formatted display message