export class SerializationError extends Error { constructor ( message ) { super ( message ) ; this . message = message ; this . name = this . constructor . name ; if ( Error . captureStackTrace ) { Error . captureStackTrace ( this , this . constructor ) ; } } } export class DeserializationError extends Error { constructor ( message ) { super ( message ) ; this . message = message ; this . name = this . constructor . name ; if ( Error . captureStackTrace ) { Error . captureStackTrace ( this , this . constructor ) ; } } } export class NotImplementedError extends Error { constructor ( message ) { super ( message ) ; this . message = message ; this . name = this . constructor . name ; if ( Error . captureStackTrace ) { Error . captureStackTrace ( this , this . constructor ) ; } } } export class SigningError extends Error { constructor ( message ) { super ( message ) ; this . message = message ; this . name = this . constructor . name ; if ( Error . captureStackTrace ) { Error . captureStackTrace ( this , this . constructor ) ; } } } export class VerificationError extends Error { constructor ( message ) { super ( message ) ; this . message = message ; this . name = this . constructor . name ; if ( Error . captureStackTrace ) { Error . captureStackTrace ( this , this . constructor ) ; } } }