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 (...) {