Exception: Lightstreamer::Errors::MetadataAdapterError

Inherits:
LightstreamerError show all
Defined in:
lib/lightstreamer/errors.rb

Overview

This error is raised when a error defined by a metadata adapter is raised.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message, code) ⇒ MetadataAdapterError

Initializes this metadata adapter error with the specified error message and error code.

Parameters:

  • message (String)

    The error message.

  • code (Fixnum)

    The error code.



130
131
132
133
134
135
# File 'lib/lightstreamer/errors.rb', line 130

def initialize(message, code)
  @adapter_error_message = message
  @adapter_error_code = code

  super message
end

Instance Attribute Details

#adapter_error_codeFixnum (readonly)

The error code from the metadata adapter.

Returns:

  • (Fixnum)


124
125
126
# File 'lib/lightstreamer/errors.rb', line 124

def adapter_error_code
  @adapter_error_code
end

#adapter_error_messageString (readonly)

The error message from the metadata adapter.

Returns:

  • (String)


119
120
121
# File 'lib/lightstreamer/errors.rb', line 119

def adapter_error_message
  @adapter_error_message
end