throwOnError method

void throwOnError()

Throws an exception if the error code indicates an error.

Implementation

void throwOnError() {
  errorCode.throwOnError();
}