import { IProcess } from '@lib/process/process' ; /**
 * An error with a code number property.
 */ export interface ErrorWithCode extends Error { code ? : string | number | null ; } /**
 * An error thrown by our standard process.
 */ export class ProcessError extends Error implements ErrorWithCode { process ? : string ; code ? : string | number | null | undefined ; param process public setProcess ( process ) { this . process = process . toString ( ) ; return this ; } param process public getProcess ( ) { return this . process ? JSON . parse ( this . process ) : undefined ; } param code public setCode ( code ? ) { this . code = code ; return this ; } /**
     * Transform this error to a string.
     */ public toString ( ) { return this . message ; } }