Package ai.velr

Class VelrException

All Implemented Interfaces:
Serializable

public class VelrException extends RuntimeException
Base unchecked exception raised by the Velr Java/Kotlin driver.
See Also:
  • Constructor Details

    • VelrException

      public VelrException(String message)
      Create a Velr exception with a message.
      Parameters:
      message - error message
    • VelrException

      public VelrException(String message, Throwable cause)
      Create a Velr exception with a message and cause.
      Parameters:
      message - error message
      cause - underlying cause
  • Method Details

    • fromNative

      public static VelrException fromNative(String fallback)
      Convert the current native error into a Java exception.
      Parameters:
      fallback - fallback message used when the native layer has no error text
      Returns:
      exception containing the native error text or fallback