bool hasError(String errorCode, [ List<String> path = null ]) Source bool hasError(String errorCode, [List<String> path = null]) { return this.getError(errorCode, path) != null; }