Class BraveApiException

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
net.ygbstudio.jbrave.core.exceptions.BraveApiException
All Implemented Interfaces:
Serializable

public class BraveApiException extends RuntimeException
BraveApiException exists to alert users about known errors that require user attention. In these cases, JBrave does not handle such errors except for rate limits when handled for autocorrection.
See Also:
  • Constructor Details

    • BraveApiException

      public BraveApiException(String message)
      Creates a new instance with the given detail message.
      Parameters:
      message - the detail message
    • BraveApiException

      public BraveApiException(@NotNull @NotNull Supplier<String> message)
      Creates a new instance with a lazily-evaluated detail message.
      Parameters:
      message - a supplier for the detail message