summaryrefslogtreecommitdiff
path: root/ext/crypto/shared.rs
diff options
context:
space:
mode:
Diffstat (limited to 'ext/crypto/shared.rs')
-rw-r--r--ext/crypto/shared.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/ext/crypto/shared.rs b/ext/crypto/shared.rs
index 1af0169ef..0b70db24e 100644
--- a/ext/crypto/shared.rs
+++ b/ext/crypto/shared.rs
@@ -100,6 +100,10 @@ pub fn not_supported_error(msg: impl Into<Cow<'static, str>>) -> AnyError {
custom_error("DOMExceptionNotSupportedError", msg)
}
+pub fn operation_error(msg: impl Into<Cow<'static, str>>) -> AnyError {
+ custom_error("DOMExceptionOperationError", msg)
+}
+
pub fn unsupported_format() -> AnyError {
not_supported_error("unsupported format")
}