#ifndef THIRD_PARTY_BLINK_RENDERER_MODULES_ML_WEBNN_ML_ERROR_H_
#define THIRD_PARTY_BLINK_RENDERER_MODULES_ML_WEBNN_ML_ERROR_H_
#include "services/webnn/public/mojom/webnn_context_provider.mojom-blink.h"
#include "services/webnn/public/mojom/webnn_error.mojom-blink.h"
#include "third_party/blink/renderer/core/dom/dom_exception.h"
namespace blink {
DOMExceptionCode WebNNErrorCodeToDOMExceptionCode(
webnn::mojom::blink::Error::Code error_code);
template <typename MojoResultType>
mojo::StructPtr<MojoResultType> ToError(
const webnn::mojom::blink::Error::Code& error_code,
const WTF::String& error_message) { … }
}
#endif