import { Description , Loggable } from '../decorator' ; @ Loggable ( ) @ Description ( ) export class FcException extends Error { since since public scope : number ; see https TODO see https public code : number ; public originalError ? : Error ; public redirect : boolean ; constructor ( input ? ) { let arg = input ; if ( input instanceof Error ) { arg = input . message ; } super ( arg as string ) ; if ( input instanceof Error ) { this . originalError = input ; } this . redirect = false ; } }