claude-1.0.0: Servant bindings to Anthropic's Claude API
Safe HaskellNone
LanguageHaskell2010

Claude.V1.Error

Contents

Description

Error types for Claude API

Synopsis

Types

data Error Source #

Error information returned by the Claude API

Constructors

Error 

Fields

Instances

Instances details
FromJSON Error Source # 
Instance details

Defined in Claude.V1.Error

ToJSON Error Source # 
Instance details

Defined in Claude.V1.Error

Generic Error Source # 
Instance details

Defined in Claude.V1.Error

Associated Types

type Rep Error 
Instance details

Defined in Claude.V1.Error

type Rep Error = D1 ('MetaData "Error" "Claude.V1.Error" "claude-1.0.0-1j0Plg9n3EjAvfVKcV8Pl0" 'False) (C1 ('MetaCons "Error" 'PrefixI 'True) (S1 ('MetaSel ('Just "type_") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ErrorType) :*: S1 ('MetaSel ('Just "message") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text)))

Methods

from :: Error -> Rep Error x #

to :: Rep Error x -> Error #

Show Error Source # 
Instance details

Defined in Claude.V1.Error

Methods

showsPrec :: Int -> Error -> ShowS #

show :: Error -> String #

showList :: [Error] -> ShowS #

type Rep Error Source # 
Instance details

Defined in Claude.V1.Error

type Rep Error = D1 ('MetaData "Error" "Claude.V1.Error" "claude-1.0.0-1j0Plg9n3EjAvfVKcV8Pl0" 'False) (C1 ('MetaCons "Error" 'PrefixI 'True) (S1 ('MetaSel ('Just "type_") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ErrorType) :*: S1 ('MetaSel ('Just "message") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text)))

data ErrorType Source #

The type of error that occurred

Instances

Instances details
FromJSON ErrorType Source # 
Instance details

Defined in Claude.V1.Error

ToJSON ErrorType Source # 
Instance details

Defined in Claude.V1.Error

Generic ErrorType Source # 
Instance details

Defined in Claude.V1.Error

Associated Types

type Rep ErrorType 
Instance details

Defined in Claude.V1.Error

type Rep ErrorType = D1 ('MetaData "ErrorType" "Claude.V1.Error" "claude-1.0.0-1j0Plg9n3EjAvfVKcV8Pl0" 'False) ((C1 ('MetaCons "Invalid_Request_Error" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "Authentication_Error" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "Permission_Error" 'PrefixI 'False) (U1 :: Type -> Type))) :+: ((C1 ('MetaCons "Not_Found_Error" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "Rate_Limit_Error" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "Api_Error" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "Overloaded_Error" 'PrefixI 'False) (U1 :: Type -> Type))))
Show ErrorType Source # 
Instance details

Defined in Claude.V1.Error

Eq ErrorType Source # 
Instance details

Defined in Claude.V1.Error

type Rep ErrorType Source # 
Instance details

Defined in Claude.V1.Error

type Rep ErrorType = D1 ('MetaData "ErrorType" "Claude.V1.Error" "claude-1.0.0-1j0Plg9n3EjAvfVKcV8Pl0" 'False) ((C1 ('MetaCons "Invalid_Request_Error" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "Authentication_Error" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "Permission_Error" 'PrefixI 'False) (U1 :: Type -> Type))) :+: ((C1 ('MetaCons "Not_Found_Error" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "Rate_Limit_Error" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "Api_Error" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "Overloaded_Error" 'PrefixI 'False) (U1 :: Type -> Type))))