scoop:scoop.crypto:0.1.0
src/errors.scoop
Selected production source · src/errors.scoop
1
package scoop.crypto3
/**4
* Reports a native cryptographic operation failure, retaining its code and diagnostic detail.5
*/6
public 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: String19
) : Exception(Some(operation + ": " + detail))