Class LnUrlException

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  LnUrlException.Status  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getMessage()  
      java.lang.String getName()
      A human readable name for the service.
      static boolean isAssignableTo​(java.util.Map<java.lang.String,​java.lang.Object> data)  
      java.util.Map<java.lang.String,​java.lang.Object> toMap()
      Return the serializable representation of this service
      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
      • Methods inherited from class java.lang.Object

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

      • LnUrlException

        public LnUrlException​(LnUrlException.Status status,
                              java.lang.String message,
                              java.lang.Throwable cause)
      • LnUrlException

        public LnUrlException​(java.util.Map<java.lang.String,​java.lang.Object> data)
    • Method Detail

      • getMessage

        public java.lang.String getMessage()
        Overrides:
        getMessage in class java.lang.Throwable
      • isAssignableTo

        public static boolean isAssignableTo​(java.util.Map<java.lang.String,​java.lang.Object> data)
      • toMap

        public java.util.Map<java.lang.String,​java.lang.Object> toMap()
        Description copied from interface: LnUrlService
        Return the serializable representation of this service
        Specified by:
        toMap in interface LnUrlService
        Returns:
        the service data, the same way it was received from the LNURL endpoint.
      • getName

        public java.lang.String getName()
        Description copied from interface: LnUrlService
        A human readable name for the service. Used for debugging and logging purposes.
        Specified by:
        getName in interface LnUrlService
        Returns:
        the name of the service