Options
All
  • Public
  • Public/Protected
  • All
Menu

Class AnnotationTargetError

Thrown when a caller attempts to decorate an annotation target when the annotation does not support that target.

Hierarchy

  • NotSupportedError
    • AnnotationTargetError

Index

Constructors

constructor

  • new AnnotationTargetError(annotationClass: any, invalidType: string, supportedTypes: string[], message?: string): AnnotationTargetError

Properties

Static serializer

serializer: (instance: any) => any

Type declaration

    • (instance: any): any
    • Parameters

      • instance: any

      Returns any

Accessors

annotationClass

  • get annotationClass(): Function

innerError

  • get innerError(): BaseError

invalidType

  • get invalidType(): string

message

  • get message(): string

supportedTypes

  • get supportedTypes(): string[]

Methods

asJSON

  • asJSON(): any

Static setJSONSerializer

  • setJSONSerializer(serializer: (instance: any) => any): void
  • Parameters

    • serializer: (instance: any) => any
        • (instance: any): any
        • Parameters

          • instance: any

          Returns any

    Returns void

Generated using TypeDoc