module worldsibu import { BaseError } from './base.error' ; import { chaincodeSideMessage } from './common' ; export class ChaincodeInitializationError extends BaseError { public code = 'CC_INIT_ERR' ; public description = 'There was a problem while starting the chaincode' ; public explanation = `
    ${ chaincodeSideMessage }` ; constructor ( public original ) { super ( ) ; this . message = super . getMessage ( super . getOriginal ( ) ) ; } } export class ChaincodeInvokationError extends BaseError { public code = 'CC_IVK_ERR' ; public description = 'There was a problem while invoking the chaincode' ; public explanation = `
    ${ chaincodeSideMessage }` ; constructor ( public original ) { super ( ) ; this . message = super . getMessage ( super . getOriginal ( ) ) ; } } export class ChaincodeInvalidTransientError extends BaseError { public code = 'CC_INV_TRANS_ERR' ; public description = 'Invalid transient value for function' ; public explanation = `
    There was an error while trying to parse the transient data using value ${ this . value }
    ${ chaincodeSideMessage }` ; constructor ( public original , public value ) { super ( ) ; this . message = super . getMessage ( super . getOriginal ( ) ) ; } }