fix(get-url): Export GeoBlocked and WrongLicense

Allows the application to fallback only on geoblocked tracks
This commit is contained in:
Namkhai B 2021-08-26 13:45:31 -05:00
parent ce6b94113d
commit 12c15b84ac
No known key found for this signature in database
GPG Key ID: 9DC021F538318528

View File

@ -10,7 +10,7 @@ interface userData {
country: string; country: string;
} }
class WrongLicense extends Error { export class WrongLicense extends Error {
constructor(format: string) { constructor(format: string) {
super(); super();
this.name = 'WrongLicense'; this.name = 'WrongLicense';
@ -18,7 +18,7 @@ class WrongLicense extends Error {
} }
} }
class GeoBlocked extends Error { export class GeoBlocked extends Error {
constructor(country: string) { constructor(country: string) {
super(); super();
this.name = 'GeoBlocked'; this.name = 'GeoBlocked';