Scoop API

scoop:scoop.crypto:0.1.0

src/errors.scoop

Selected production source · src/errors.scoop

1package scoop.crypto
3/**
4 * Reports a native cryptographic operation failure, retaining its code and diagnostic detail.
5 */
6public class CryptoException public constructor(
7 /**
8 * The operation being performed when the backend failed.
9 */
10 public val operation: String,
11 /**
12 * The native backend's error code.
13 */
14 public val code: ULong,
15 /**
16 * The backend's human-readable diagnostic text.
17 */
18 public val detail: String
19) : Exception(Some(operation + ": " + detail))