Module: Anthropic::Models::Beta::BetaDreamingErrorObject
- Extended by:
- Internal::Type::Union
- Defined in:
- lib/anthropic/models/beta/beta_dreaming_error_object.rb,
sig/anthropic/models/beta/beta_dreaming_error_object.rbs
Defined Under Namespace
Modules: Type
Class Method Summary collapse
-
.new(type:, **args) ⇒ Anthropic::Models::BetaInvalidRequestErrorObject, ...
Creates a new instance of the variant class whose
typematches the given value, passing the remaining arguments to its constructor. - .values ⇒ Array<Symbol>
- .variants ⇒ Array(Anthropic::Models::BetaInvalidRequestErrorObject, Anthropic::Models::BetaAuthenticationErrorObject, Anthropic::Models::BetaBillingErrorObject, Anthropic::Models::BetaPermissionErrorObject, Anthropic::Models::BetaNotFoundErrorObject, Anthropic::Models::BetaRateLimitErrorObject, Anthropic::Models::BetaGatewayTimeoutErrorObject, Anthropic::Models::BetaAPIErrorObject, Anthropic::Models::BetaOverloadedErrorObject, Anthropic::Models::Beta::BetaTargetStoreHeldErrorObject)
Methods included from Internal::Type::Union
==, ===, coerce, derefed_variants, dump, hash, inspect, to_sorbet_type
Methods included from Internal::Util::SorbetRuntimeSupport
#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type
Methods included from Internal::Type::Converter
#coerce, coerce, #dump, dump, inspect, #inspect, meta_info, new_coerce_state, type_info
Class Method Details
.new(type:, message:) ⇒ Anthropic::BetaInvalidRequestErrorObject .new(type:, message:) ⇒ Anthropic::BetaAuthenticationErrorObject .new(type:, message:) ⇒ Anthropic::BetaBillingErrorObject .new(type:, message:) ⇒ Anthropic::BetaPermissionErrorObject .new(type:, message:) ⇒ Anthropic::BetaNotFoundErrorObject .new(type:, message:) ⇒ Anthropic::BetaRateLimitErrorObject .new(type:, message:) ⇒ Anthropic::BetaGatewayTimeoutErrorObject .new(type:, message:) ⇒ Anthropic::BetaAPIErrorObject .new(type:, message:) ⇒ Anthropic::BetaOverloadedErrorObject .new(type:, message:) ⇒ Anthropic::Beta::BetaTargetStoreHeldErrorObject .new(type:, message:) ⇒ Anthropic::Models::Beta::beta_dreaming_error_object
Creates a new instance of the variant class whose type matches the given
value, passing the remaining arguments to its constructor.
Some parameter documentations has been truncated, see Anthropic::Models::Beta::BetaDreamingErrorObject for more details.
69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 |
# File 'lib/anthropic/models/beta/beta_dreaming_error_object.rb', line 69 def self.new(type:, **args) case type.to_sym when :invalid_request_error Anthropic::BetaInvalidRequestErrorObject.new(**args) when :authentication_error Anthropic::BetaAuthenticationErrorObject.new(**args) when :billing_error Anthropic::BetaBillingErrorObject.new(**args) when :permission_error Anthropic::BetaPermissionErrorObject.new(**args) when :not_found_error Anthropic::BetaNotFoundErrorObject.new(**args) when :rate_limit_error Anthropic::BetaRateLimitErrorObject.new(**args) when :timeout_error Anthropic::BetaGatewayTimeoutErrorObject.new(**args) when :api_error Anthropic::BetaAPIErrorObject.new(**args) when :overloaded_error Anthropic::BetaOverloadedErrorObject.new(**args) when :conflict_error Anthropic::Beta::BetaTargetStoreHeldErrorObject.new(**args) else raise ArgumentError, "unknown type: #{type}" end end |
.values ⇒ Array<Symbol>
|
|
# File 'lib/anthropic/models/beta/beta_dreaming_error_object.rb', line 48
|
.variants ⇒ Array(Anthropic::Models::BetaInvalidRequestErrorObject, Anthropic::Models::BetaAuthenticationErrorObject, Anthropic::Models::BetaBillingErrorObject, Anthropic::Models::BetaPermissionErrorObject, Anthropic::Models::BetaNotFoundErrorObject, Anthropic::Models::BetaRateLimitErrorObject, Anthropic::Models::BetaGatewayTimeoutErrorObject, Anthropic::Models::BetaAPIErrorObject, Anthropic::Models::BetaOverloadedErrorObject, Anthropic::Models::Beta::BetaTargetStoreHeldErrorObject)
|
|
# File 'lib/anthropic/models/beta/beta_dreaming_error_object.rb', line 52
|