Class ConfigurateException

    • Constructor Detail

      • ConfigurateException

        public ConfigurateException​(String message)
        Create a new exception at unknown path with provided informational message.
        Parameters:
        message - informational message
        Since:
        4.0.0
      • ConfigurateException

        public ConfigurateException​(Throwable cause)
        Create a new exception with a cause and unknown message.
        Parameters:
        cause - the cause of this exception
        Since:
        4.0.0
      • ConfigurateException

        public ConfigurateException​(@Nullable String message,
                                    @Nullable Throwable cause)
        Create a new exception with informational message and cause.
        Parameters:
        message - the informational message
        cause - the cause of the exception
        Since:
        4.0.0
      • ConfigurateException

        public ConfigurateException​(ConfigurationNode pos,
                                    String message)
        Create a new exception pre-initialized with path and message.
        Parameters:
        pos - node where the error occurred
        message - message describing the error
        Since:
        4.0.0
      • ConfigurateException

        public ConfigurateException​(ConfigurationNode pos,
                                    Throwable cause)
        Create a new exception pre-initialized with path and cause.
        Parameters:
        pos - node where the error occurred
        cause - direct cause of this exception
        Since:
        4.0.0
      • ConfigurateException

        public ConfigurateException​(NodePath path,
                                    @Nullable String message,
                                    @Nullable Throwable cause)
        Create a new exception pre-initialized with path, message, and cause.
        Parameters:
        path - path to the node where the error occurred
        message - message describing the error
        cause - direct cause of this exception
        Since:
        4.0.0
    • Method Detail

      • path

        public NodePath path()
        Get the path associated with this failure.
        Returns:
        the path
        Since:
        4.0.0
      • initPath

        public void initPath​(Supplier<NodePath> path)
        Initialize path if none has been set.
        Parameters:
        path - new path
        Since:
        4.0.0
      • rawMessage

        public @Nullable String rawMessage()
        Get the exception's message without any extra formatting.
        Returns:
        the raw message
        Since:
        4.0.0