Exception: Bsdkrun::AuthError

Inherits:
GraphQLError show all
Defined in:
lib/bsdkrun/errors.rb

Overview

The daemon rejected our token — an HTTP 401, a GraphQL error whose extensions.code is "UNAUTHENTICATED", or a websocket that closed before connection_ack ever arrived.

Instance Attribute Summary

Attributes inherited from GraphQLError

#code

Instance Method Summary collapse

Constructor Details

#initialize(message = "the daemon rejected this token") ⇒ AuthError

Returns a new instance of AuthError.

Parameters:

  • message (String) (defaults to: "the daemon rejected this token")


73
74
75
# File 'lib/bsdkrun/errors.rb', line 73

def initialize(message = "the daemon rejected this token")
  super(message, "UNAUTHENTICATED")
end