Abstract class that defines the error handling behavior for a value object

Export

Abstract

Since

1.0.0

Version

1.0.0

License

MIT

Author

Julian Andres Lasso Figueroa julian.lasso@sofka.com.co

Hierarchy

  • ValueObjectsErrorHandlerAbstract

Constructors

Properties

_errorMessage: string

Error message for the exception thrown by all the value objects

Memberof

ValueObjectsErrorHandlerAbstract

Value Object Error Stack

Memberof

ValueObjectsErrorHandlerAbstract

_props: string[]

Entity attributes array

Memberof

ValueObjectsErrorHandlerAbstract

Accessors

Methods

  • Validates the value objects, creates the error stack and throws an exception if it has errors

    Throws

    Throws an exception with the value object errors if it has any

    Memberof

    ValueObjectsErrorHandlerAbstract

    Parameters

    • message: string

      Message of the exception

    • valueObjects: ValueObjectAbstract<any>[]

      Array of value objects

    Returns void

Generated using TypeDoc