Class CouchbaseLiteException

  • All Implemented Interfaces:
    Serializable

    public final class CouchbaseLiteException
    extends Exception
    A CouchbaseLiteException gets raised whenever a Couchbase Lite faces errors.
    See Also:
    Serialized Form
    • Constructor Detail

      • CouchbaseLiteException

        public CouchbaseLiteException​(@NonNull
                                      String message)
        Constructs a new exception with the specified detail message.
        Parameters:
        message - the detail message.
      • CouchbaseLiteException

        @Deprecated
        public CouchbaseLiteException​(@NonNull
                                      Exception cause)
        Deprecated.
        Must supply an error message
        Constructs a new exception with the specified cause
        Parameters:
        cause - the cause
      • CouchbaseLiteException

        public CouchbaseLiteException​(@NonNull
                                      String message,
                                      @NonNull
                                      Exception cause)
        Constructs a new exception with the specified cause
        Parameters:
        cause - the cause
      • CouchbaseLiteException

        @Deprecated
        public CouchbaseLiteException​(@NonNull
                                      CBLInternalException cause)
        Deprecated.
        Must supply an error message
        Constructs a new exception from an internal exception
        Parameters:
        cause - the internal exception
      • CouchbaseLiteException

        public CouchbaseLiteException​(@NonNull
                                      String message,
                                      @NonNull
                                      CBLInternalException cause)
        Constructs a new exception from an internal exception
        Parameters:
        cause - the internal exception
      • CouchbaseLiteException

        @Deprecated
        public CouchbaseLiteException​(@NonNull
                                      String domain,
                                      int code)
        Deprecated.
        Must supply an error message
        Constructs a new exception with the specified error domain and error code
        Parameters:
        domain - the error domain
        code - the error code
      • CouchbaseLiteException

        public CouchbaseLiteException​(@NonNull
                                      String message,
                                      @NonNull
                                      String domain,
                                      int code)
        Constructs a new exception with the specified detail message, error domain and error code
        Parameters:
        message - the detail message
        domain - the error domain
        code - the error code
      • CouchbaseLiteException

        @Deprecated
        public CouchbaseLiteException​(@NonNull
                                      String domain,
                                      int code,
                                      @NonNull
                                      Exception cause)
        Deprecated.
        Must supply an error message
        Constructs a new exception with the specified error domain, error code and the specified cause
        Parameters:
        domain - the error domain
        code - the error code
        cause - the cause
      • CouchbaseLiteException

        @Deprecated
        public CouchbaseLiteException​(@NonNull
                                      String domain,
                                      int code,
                                      @Nullable
                                      Map<String,​Object> info)
        Deprecated.
        Must supply an error message
        Constructs a new exception with the specified error domain, error code and the specified cause
        Parameters:
        domain - the error domain
        code - the error code
        info - the internal info map
      • CouchbaseLiteException

        public CouchbaseLiteException​(@NonNull
                                      String message,
                                      @NonNull
                                      Exception cause,
                                      @NonNull
                                      String domain,
                                      int code)
        Constructs a new exception with the specified error domain, error code and the specified cause
        Parameters:
        message - the detail message
        cause - the cause
        domain - the error domain
        code - the error code
      • CouchbaseLiteException

        public CouchbaseLiteException()
        This method is not part of the public API. Do not use it. It may change or disappear at any time.
      • CouchbaseLiteException

        public CouchbaseLiteException​(@Nullable
                                      String message,
                                      @Nullable
                                      Exception cause,
                                      @Nullable
                                      String domain,
                                      int code,
                                      @Nullable
                                      Map<String,​Object> info)
        This method is not part of the public API. Do not use it. It may change or disappear at any time.