-Returns an adequate formatted JSON for whenever there is an error.
+Returns a properly formatted JSON response for errors.
Args:
- error (string): message detailing what type of error has been fired.
+ msg (str): Message detailing the type of error that has occurred.
+ exception (Exception, optional): Exception object to include in the error message. Defaults to None.
+
+Returns:
+ Response: JSON response indicating an error status.
diff --git a/functions.html b/functions.html
index cad6c68..acf9b9b 100644
--- a/functions.html
+++ b/functions.html
@@ -214,7 +214,7 @@ - q -
- r -
- rescale() : Autoencoder
-- return_error() : Autoencoder, APIServer, ShallowOutliers
+- return_error() : Autoencoder, APIServer, ShallowOutliers
- rq_manager : Outliers
- rq_queue : RqManager
- run() : Outliers
diff --git a/functions_func.html b/functions_func.html
index 46d5457..d734639 100644
--- a/functions_func.html
+++ b/functions_func.html
@@ -173,7 +173,7 @@ - p -
- r -
- rescale() : Autoencoder
-- return_error() : Autoencoder, APIServer, ShallowOutliers
+- return_error() : Autoencoder, APIServer, ShallowOutliers
- run() : Outliers
- run_production_server() : Outliers
- run_test_app() : APIServer
diff --git a/search/all_f.js b/search/all_f.js
index 448e531..a8ca31b 100644
--- a/search/all_f.js
+++ b/search/all_f.js
@@ -6,7 +6,7 @@ var searchData=
['rescale_3',['rescale',['../classoutliers_1_1Autoencoder.html#a81efd85946d8e5ac80b3d58e1dfdf63a',1,'outliers::Autoencoder']]],
['rest_4',['rest',['../namespacerest.html',1,'']]],
['rest_2epy_5',['rest.py',['../rest_8py.html',1,'']]],
- ['return_5ferror_6',['return_error',['../classshallow__outliers_1_1ShallowOutliers.html#a64f52234879e3153b151a915d9549927',1,'shallow_outliers.ShallowOutliers.return_error()'],['../classrest_1_1APIServer.html#a62567b0caaa1b7cdbba24df441c0625d',1,'rest.APIServer.return_error()'],['../classoutliers_1_1Autoencoder.html#a64f52234879e3153b151a915d9549927',1,'outliers.Autoencoder.return_error()']]],
+ ['return_5ferror_6',['return_error',['../classshallow__outliers_1_1ShallowOutliers.html#a64f52234879e3153b151a915d9549927',1,'shallow_outliers.ShallowOutliers.return_error()'],['../classrest_1_1APIServer.html#a76881d2ca33b2160499ebd0779c51261',1,'rest.APIServer.return_error()'],['../classoutliers_1_1Autoencoder.html#a64f52234879e3153b151a915d9549927',1,'outliers.Autoencoder.return_error()']]],
['rq_7',['rq',['../namespacerq.html',1,'']]],
['rq_2epy_8',['rq.py',['../rq_8py.html',1,'']]],
['rq_5fmanager_9',['rq_manager',['../class____main_____1_1Outliers.html#afb7fb1638cd86df75576dd639f46f128',1,'__main__::Outliers']]],
diff --git a/search/functions_b.js b/search/functions_b.js
index d4b2118..9566f3b 100644
--- a/search/functions_b.js
+++ b/search/functions_b.js
@@ -1,7 +1,7 @@
var searchData=
[
['rescale_0',['rescale',['../classoutliers_1_1Autoencoder.html#a81efd85946d8e5ac80b3d58e1dfdf63a',1,'outliers::Autoencoder']]],
- ['return_5ferror_1',['return_error',['../classoutliers_1_1Autoencoder.html#a64f52234879e3153b151a915d9549927',1,'outliers.Autoencoder.return_error()'],['../classshallow__outliers_1_1ShallowOutliers.html#a64f52234879e3153b151a915d9549927',1,'shallow_outliers.ShallowOutliers.return_error()'],['../classrest_1_1APIServer.html#a62567b0caaa1b7cdbba24df441c0625d',1,'rest.APIServer.return_error()']]],
+ ['return_5ferror_1',['return_error',['../classoutliers_1_1Autoencoder.html#a64f52234879e3153b151a915d9549927',1,'outliers.Autoencoder.return_error()'],['../classshallow__outliers_1_1ShallowOutliers.html#a64f52234879e3153b151a915d9549927',1,'shallow_outliers.ShallowOutliers.return_error()'],['../classrest_1_1APIServer.html#a76881d2ca33b2160499ebd0779c51261',1,'rest.APIServer.return_error()']]],
['run_2',['run',['../class____main_____1_1Outliers.html#ad22709b2e67308af35f55680d5a026e0',1,'__main__::Outliers']]],
['run_5fproduction_5fserver_3',['run_production_server',['../class____main_____1_1Outliers.html#aea09bc34c2d2aeb676290e4574fd0eee',1,'__main__::Outliers']]],
['run_5ftest_5fapp_4',['run_test_app',['../classrest_1_1APIServer.html#a226b012c2968bdefd981622ad548a37b',1,'rest::APIServer']]],