Removed dedicated napi error handler

This commit is contained in:
TheEssem 2021-05-23 17:25:00 -05:00
parent 32a470aec3
commit 248ea8a71b
No known key found for this signature in database
GPG Key ID: A3F9F02129092FCA
35 changed files with 0 additions and 70 deletions

View File

@ -49,8 +49,6 @@ Napi::Value Blur(const Napi::CallbackInfo &info) {
blob.length()));
result.Set("type", type);
return result;
} catch (Napi::Error const &err) {
throw err;
} catch (std::exception const &err) {
throw Napi::Error::New(env, err.what());
} catch (...) {

View File

@ -50,8 +50,6 @@ Napi::Value Blurple(const Napi::CallbackInfo &info) {
blob.length()));
result.Set("type", type);
return result;
} catch (Napi::Error const &err) {
throw err;
} catch (std::exception const &err) {
throw Napi::Error::New(env, err.what());
} catch (...) {

View File

@ -68,8 +68,6 @@ Napi::Value Caption(const Napi::CallbackInfo &info) {
blob.length()));
result.Set("type", type);
return result;
} catch (Napi::Error const &err) {
throw err;
} catch (std::exception const &err) {
throw Napi::Error::New(env, err.what());
} catch (...) {

View File

@ -66,8 +66,6 @@ Napi::Value CaptionTwo(const Napi::CallbackInfo &info) {
blob.length()));
result.Set("type", type);
return result;
} catch (Napi::Error const &err) {
throw err;
} catch (std::exception const &err) {
throw Napi::Error::New(env, err.what());
} catch (...) {

View File

@ -47,8 +47,6 @@ Napi::Value Circle(const Napi::CallbackInfo &info) {
blob.length()));
result.Set("type", type);
return result;
} catch (Napi::Error const &err) {
throw err;
} catch (std::exception const &err) {
throw Napi::Error::New(env, err.what());
} catch (...) {

View File

@ -55,8 +55,6 @@ Napi::Value Crop(const Napi::CallbackInfo &info) {
blob.length()));
result.Set("type", type);
return result;
} catch (Napi::Error const &err) {
throw err;
} catch (std::exception const &err) {
throw Napi::Error::New(env, err.what());
} catch (...) {

View File

@ -48,8 +48,6 @@ Napi::Value Explode(const Napi::CallbackInfo &info) {
blob.length()));
result.Set("type", type);
return result;
} catch (Napi::Error const &err) {
throw err;
} catch (std::exception const &err) {
throw Napi::Error::New(env, err.what());
} catch (...) {

View File

@ -56,8 +56,6 @@ Napi::Value Flag(const Napi::CallbackInfo &info) {
blob.length()));
result.Set("type", type);
return result;
} catch (Napi::Error const &err) {
throw err;
} catch (std::exception const &err) {
throw Napi::Error::New(env, err.what());
} catch (...) {

View File

@ -49,8 +49,6 @@ Napi::Value Flip(const Napi::CallbackInfo &info) {
blob.length()));
result.Set("type", type);
return result;
} catch (Napi::Error const &err) {
throw err;
} catch (std::exception const &err) {
throw Napi::Error::New(env, err.what());
} catch (...) {

View File

@ -92,8 +92,6 @@ Napi::Value Freeze(const Napi::CallbackInfo &info) {
result.Set("type", type);
return result;
} catch (Napi::Error const &err) {
throw err;
} catch (std::exception const &err) {
throw Napi::Error::New(env, err.what());
} catch (...) {

View File

@ -52,8 +52,6 @@ Napi::Value Gamexplain(const Napi::CallbackInfo &info) {
blob.length()));
result.Set("type", type);
return result;
} catch (Napi::Error const &err) {
throw err;
} catch (std::exception const &err) {
throw Napi::Error::New(env, err.what());
} catch (...) {

View File

@ -69,8 +69,6 @@ Napi::Value Globe(const Napi::CallbackInfo &info) {
blob.length()));
result.Set("type", "gif");
return result;
} catch (Napi::Error const &err) {
throw err;
} catch (std::exception const &err) {
throw Napi::Error::New(env, err.what());
} catch (...) {

View File

@ -31,8 +31,6 @@ Napi::Value Homebrew(const Napi::CallbackInfo &info) {
blob.length()));
result.Set("type", "png");
return result;
} catch (Napi::Error const &err) {
throw err;
} catch (std::exception const &err) {
throw Napi::Error::New(env, err.what());
} catch (...) {

View File

@ -49,8 +49,6 @@ Napi::Value Invert(const Napi::CallbackInfo &info) {
blob.length()));
result.Set("type", type);
return result;
} catch (Napi::Error const &err) {
throw err;
} catch (std::exception const &err) {
throw Napi::Error::New(env, err.what());
} catch (...) {

View File

@ -26,8 +26,6 @@ Napi::Value Jpeg(const Napi::CallbackInfo &info) {
blob.length()));
result.Set("type", "jpg");
return result;
} catch (Napi::Error const &err) {
throw err;
} catch (std::exception const &err) {
throw Napi::Error::New(env, err.what());
} catch (...) {

View File

@ -53,8 +53,6 @@ Napi::Value Leak(const Napi::CallbackInfo &info) {
blob.length()));
result.Set("type", type);
return result;
} catch (Napi::Error const &err) {
throw err;
} catch (std::exception const &err) {
throw Napi::Error::New(env, err.what());
} catch (...) {

View File

@ -49,8 +49,6 @@ Napi::Value Magik(const Napi::CallbackInfo &info) {
blob.length()));
result.Set("type", type);
return result;
} catch (Napi::Error const &err) {
throw err;
} catch (std::exception const &err) {
throw Napi::Error::New(env, err.what());
} catch (...) {

View File

@ -89,8 +89,6 @@ Napi::Value Meme(const Napi::CallbackInfo &info) {
blob.length()));
result.Set("type", type);
return result;
} catch (Napi::Error const &err) {
throw err;
} catch (std::exception const &err) {
throw Napi::Error::New(env, err.what());
} catch (...) {

View File

@ -84,8 +84,6 @@ Napi::Value Mirror(const Napi::CallbackInfo &info) {
blob.length()));
result.Set("type", type);
return result;
} catch (Napi::Error const &err) {
throw err;
} catch (std::exception const &err) {
throw Napi::Error::New(env, err.what());
} catch (...) {

View File

@ -89,8 +89,6 @@ Napi::Value Motivate(const Napi::CallbackInfo &info) {
blob.length()));
result.Set("type", type);
return result;
} catch (Napi::Error const &err) {
throw err;
} catch (std::exception const &err) {
throw Napi::Error::New(env, err.what());
} catch (...) {

View File

@ -68,8 +68,6 @@ Napi::Value Reddit(const Napi::CallbackInfo &info) {
blob.length()));
result.Set("type", type);
return result;
} catch (Napi::Error const &err) {
throw err;
} catch (std::exception const &err) {
throw Napi::Error::New(env, err.what());
} catch (...) {

View File

@ -60,8 +60,6 @@ Napi::Value Resize(const Napi::CallbackInfo &info) {
blob.length()));
result.Set("type", type);
return result;
} catch (Napi::Error const &err) {
throw err;
} catch (std::exception const &err) {
throw Napi::Error::New(env, err.what());
} catch (...) {

View File

@ -82,8 +82,6 @@ Napi::Value Retro(const Napi::CallbackInfo &info) {
blob.length()));
result.Set("type", "png");
return result;
} catch (Napi::Error const &err) {
throw err;
} catch (std::exception const &err) {
throw Napi::Error::New(env, err.what());
} catch (...) {

View File

@ -49,8 +49,6 @@ Napi::Value Reverse(const Napi::CallbackInfo &info) {
blob.length()));
result.Set("type", "gif");
return result;
} catch (Napi::Error const &err) {
throw err;
} catch (std::exception const &err) {
throw Napi::Error::New(env, err.what());
} catch (...) {

View File

@ -58,8 +58,6 @@ Napi::Value Scott(const Napi::CallbackInfo &info) {
blob.length()));
result.Set("type", type);
return result;
} catch (Napi::Error const &err) {
throw err;
} catch (std::exception const &err) {
throw Napi::Error::New(env, err.what());
} catch (...) {

View File

@ -34,8 +34,6 @@ Napi::Value Sonic(const Napi::CallbackInfo &info) {
blob.length()));
result.Set("type", "png");
return result;
} catch (Napi::Error const &err) {
throw err;
} catch (std::exception const &err) {
throw Napi::Error::New(env, err.what());
} catch (...) {

View File

@ -158,8 +158,6 @@ Napi::Value Speed(const Napi::CallbackInfo &info) {
result.Set("type", type);
return result;
} catch (Napi::Error const &err) {
throw err;
} catch (std::exception const &err) {
throw Napi::Error::New(env, err.what());
} catch (...) {

View File

@ -65,8 +65,6 @@ Napi::Value Spin(const Napi::CallbackInfo &info) {
blob.length()));
result.Set("type", "gif");
return result;
} catch (Napi::Error const &err) {
throw err;
} catch (std::exception const &err) {
throw Napi::Error::New(env, err.what());
} catch (...) {

View File

@ -47,8 +47,6 @@ Napi::Value Swirl(const Napi::CallbackInfo &info) {
blob.length()));
result.Set("type", type);
return result;
} catch (Napi::Error const &err) {
throw err;
} catch (std::exception const &err) {
throw Napi::Error::New(env, err.what());
} catch (...) {

View File

@ -61,8 +61,6 @@ Napi::Value Tile(const Napi::CallbackInfo &info) {
blob.length()));
result.Set("type", type);
return result;
} catch (Napi::Error const &err) {
throw err;
} catch (std::exception const &err) {
throw Napi::Error::New(env, err.what());
} catch (...) {

View File

@ -59,8 +59,6 @@ Napi::Value Trump(const Napi::CallbackInfo &info) {
blob.length()));
result.Set("type", type);
return result;
} catch (Napi::Error const &err) {
throw err;
} catch (std::exception const &err) {
throw Napi::Error::New(env, err.what());
} catch (...) {

View File

@ -91,8 +91,6 @@ Napi::Value Uncaption(const Napi::CallbackInfo &info) {
blob.length()));
result.Set("type", type);
return result;
} catch (Napi::Error const &err) {
throw err;
} catch (std::exception const &err) {
throw Napi::Error::New(env, err.what());
} catch (...) {

View File

@ -55,8 +55,6 @@ Napi::Value Wall(const Napi::CallbackInfo &info) {
blob.length()));
result.Set("type", type);
return result;
} catch (Napi::Error const &err) {
throw err;
} catch (std::exception const &err) {
throw Napi::Error::New(env, err.what());
} catch (...) {

View File

@ -83,8 +83,6 @@ Napi::Value Watermark(const Napi::CallbackInfo &info) {
blob.length()));
result.Set("type", type);
return result;
} catch (Napi::Error const &err) {
throw err;
} catch (std::exception const &err) {
throw Napi::Error::New(env, err.what());
} catch (...) {

View File

@ -52,8 +52,6 @@ Napi::Value Wdt(const Napi::CallbackInfo &info) {
blob.length()));
result.Set("type", type);
return result;
} catch (Napi::Error const &err) {
throw err;
} catch (std::exception const &err) {
throw Napi::Error::New(env, err.what());
} catch (...) {