Class: Glia::Errors::GeographicPermissionError

Inherits:
Error
  • Object
show all
Defined in:
lib/glia/errors/client_errors.rb

Instance Attribute Summary

Attributes inherited from Error

#error_details, #message, #ref, #type

Instance Method Summary collapse

Methods inherited from Error

#to_h

Constructor Details

#initialize(message: nil) ⇒ GeographicPermissionError

Returns a new instance of GeographicPermissionError.



284
285
286
287
288
289
290
# File 'lib/glia/errors/client_errors.rb', line 284

def initialize(message: nil)
  super(
    type: GEOGRAPHIC_PERMISSION_ERROR,
    ref: create_ref(GEOGRAPHIC_PERMISSION_ERROR),
    message: message || 'Insufficient permissions for geographic region'
  )
end