export class SignatureValidationFailed extends Error { constructor ( message , public signature ? ) { super ( message ) ; } } export class JSONParseError extends Error { constructor ( message , public raw ) { super ( message ) ; } } export class RequestError extends Error { constructor ( message , public code , private originalError ) { super ( message ) ; } } export class ReadError extends Error { constructor ( private originalError ) { super ( originalError . message ) ; } } export class HTTPError extends Error { constructor ( message , public statusCode , public statusMessage , public originalError ) { super ( message ) ; } }