Class: HubSpotSDK::Models::StandardError
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- HubSpotSDK::Models::StandardError
- Defined in:
- lib/hubspot_sdk/models/standard_error.rb
Instance Attribute Summary collapse
-
#category ⇒ String
Error category.
-
#context ⇒ Hash{Symbol=>Array<String>}
Error context.
-
#errors ⇒ Array<HubSpotSDK::Models::ErrorDetail>
List of error details.
-
#id ⇒ String?
Error ID.
-
#links ⇒ Hash{Symbol=>String}
Error links.
-
#message ⇒ String
Error message.
-
#status ⇒ String
Error status.
-
#sub_category ⇒ Object?
Error subcategory.
Instance Method Summary collapse
-
#initialize(category:, context:, errors:, links:, message:, status:, id: nil, sub_category: nil) ⇒ Object
constructor
Ye olde error.
Methods inherited from Internal::Type::BaseModel
==, #==, #[], coerce, #deconstruct_keys, #deep_to_h, dump, fields, hash, #hash, inherited, inspect, #inspect, known_fields, optional, recursively_to_h, required, #to_h, #to_json, #to_s, to_sorbet_type, #to_yaml
Methods included from Internal::Type::Converter
#coerce, coerce, #dump, dump, #inspect, inspect, meta_info, new_coerce_state, type_info
Methods included from Internal::Util::SorbetRuntimeSupport
#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type
Constructor Details
#initialize(category:, context:, errors:, links:, message:, status:, id: nil, sub_category: nil) ⇒ Object
Ye olde error
|
|
# File 'lib/hubspot_sdk/models/standard_error.rb', line 54
|
Instance Attribute Details
#category ⇒ String
Error category.
10 |
# File 'lib/hubspot_sdk/models/standard_error.rb', line 10 required :category, String |
#context ⇒ Hash{Symbol=>Array<String>}
Error context.
16 |
# File 'lib/hubspot_sdk/models/standard_error.rb', line 16 required :context, HubSpotSDK::Internal::Type::HashOf[HubSpotSDK::Internal::Type::ArrayOf[String]] |
#errors ⇒ Array<HubSpotSDK::Models::ErrorDetail>
List of error details.
22 |
# File 'lib/hubspot_sdk/models/standard_error.rb', line 22 required :errors, -> { HubSpotSDK::Internal::Type::ArrayOf[HubSpotSDK::ErrorDetail] } |
#id ⇒ String?
Error ID.
46 |
# File 'lib/hubspot_sdk/models/standard_error.rb', line 46 optional :id, String |
#links ⇒ Hash{Symbol=>String}
Error links.
28 |
# File 'lib/hubspot_sdk/models/standard_error.rb', line 28 required :links, HubSpotSDK::Internal::Type::HashOf[String] |
#message ⇒ String
Error message.
34 |
# File 'lib/hubspot_sdk/models/standard_error.rb', line 34 required :message, String |
#status ⇒ String
Error status.
40 |
# File 'lib/hubspot_sdk/models/standard_error.rb', line 40 required :status, String |
#sub_category ⇒ Object?
Error subcategory.
52 |
# File 'lib/hubspot_sdk/models/standard_error.rb', line 52 optional :sub_category, HubSpotSDK::Internal::Type::Unknown, api_name: :subCategory |