Method: Weatherb::Error#initialize

Defined in:
lib/weatherb/error.rb

#initialize(message, status_code) ⇒ Error



8
9
10
11
12
13
14
# File 'lib/weatherb/error.rb', line 8

def initialize(message, status_code)
  # Call the parent's constructor to set the message
  super(message)

  # Store the status_code in an instance variable
  @status_code = status_code
end