import { CEPErrorCode } from './cep-error-code' ; export class CEPError extends Error { constructor ( private code ) { super ( CEPErrorCode [ code ] ) ; Object . setPrototypeOf ( this , CEPError . prototype ) ; } /**
     * Returns the Error code
     */ getCode ( ) { return this . code ; } }