failUrn method
Completes this resource URN with an error when registration fails.
Implementation
void failUrn(Object error) {
if (_urnCompleter.isCompleted) {
return;
}
final exception = error is Exception ? error : Exception(error.toString());
_urnCompleter.completeError(exception);
}