export class NetworkError extends Error { constructor ( public message ) { super ( message ) ; Object . setPrototypeOf ( this , new . target . prototype ) ; this . name = 'NetworkError' ; this . stack = new Error ( ) . stack ; } }