import { RestError } from './rest-error' ; export class InvalidResourceUrlError extends RestError { constructor ( public message = 'Not a valid resource url.' ) { super ( message , 404 , 'INVALID_RESOURCE_URL' ) ; this . name = 'InvalidResourceUrlError' ; } }