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
1 changed files with 2 additions and 2 deletions

View File

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