Interface ErrorDetailHandler

  • All Implemented Interfaces:

    
    public interface ErrorDetailHandler<T extends Object>
    
                        

    Callback with error details.

    Used for operations that do not return result data on success, but provide additional error details on failure. For example, updating user profiles returns a list of failed field keys, and subscribing to events returns a list of failed user IDs.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      abstract Unit onError(T errorDetail, NCError error) Operation completion callback.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • Method Detail

      • onError

         abstract Unit onError(T errorDetail, NCError error)

        Operation completion callback.

        Parameters:
        errorDetail - Error detail data on failure (e.g.
        error - Error info on failure; null on success