toAsyncException static method

AsyncException toAsyncException(
  1. Exception ex
)

Implementation

static AsyncException toAsyncException(Exception ex) {
  return ex is AsyncException
      ? ex
      : new AsyncException(ErrorType.Exception, 0, ex.toString());
}