ReferenceException constructor

ReferenceException(
  1. IContext? context,
  2. dynamic locator
)

Creates an error instance and assigns its values.

  • context (optional) a unique a context to trace execution through call chain.
  • locator the locator to find reference to dependent component.

Implementation

ReferenceException(IContext? context, locator)
    : super(ContextResolver.getTraceId(context), 'REF_ERROR',
          'Failed to obtain reference to ' + locator.toString()) {
  withDetails('locator', locator);
}