You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There are several classes of errors that can happen anywhere and any time, such as the myriad of SOAP faults from NetSuite, or even just the underlying HTTP requests that are exposed as exceptions from the underlying libraries used by this gem. Savon and Excon errors should be wrapped with error classes which would make it easier for developers to sort out where the exception came from and reduce the need to understand what kinds of faults might come from the SuiteTalk api might randomly show up.
Example. A Savon::SOAPFault related to ExceededConcurrentRequestLimitFault should trigger something like NetSuite::RequestLimitError extending NetSuite::Error, so that if someone wants to retry a netsuite action, they don't have to go through the song and dance of determining exactly what fault occurred, or if they just want to retry on any netsuite related error, just rescue NetSuite::Error. Same thing for any network condition error that might occur at any time, it'd be nice to have a NetSuite::NetworkError cover those details.
The text was updated successfully, but these errors were encountered:
On Tue, Aug 30, 2022 at 2:22 PM Steven Berlan ***@***.***> wrote:
There are several classes of errors that can happen anywhere and any time,
such as the myriad of SOAP faults from NetSuite, or even just the
underlying HTTP requests that are exposed as exceptions from the underlying
libraries used by this gem. Savon and Excon errors should be wrapped with
error classes which would make it easier for developers to sort out where
the exception came from and reduce the need to understand what kinds of
faults might come from the SuiteTalk api
<https://docs.oracle.com/en/cloud/saas/netsuite/ns-online-help/section_N3539420.html>
might randomly show up.
Example. A Savon::SOAPFault related to ExceededConcurrentRequestLimitFault
should trigger something like NetSuite::RequestLimitError extending
NetSuite::Error, so that if someone wants to retry a netsuite action,
they don't have to go through the song and dance of determining exactly
what fault occurred, or if they just want to retry on any netsuite related
error, just rescue NetSuite::Error. Same thing for any network condition
error that might occur at any time, it'd be nice to have a
NetSuite::NetworkError cover those details.
—
Reply to this email directly, view it on GitHub
<#562>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AABE2R6MLFS6WATXQ3I52WTV3ZUQDANCNFSM6AAAAAAQAXYZAA>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
There are several classes of errors that can happen anywhere and any time, such as the myriad of SOAP faults from NetSuite, or even just the underlying HTTP requests that are exposed as exceptions from the underlying libraries used by this gem. Savon and Excon errors should be wrapped with error classes which would make it easier for developers to sort out where the exception came from and reduce the need to understand what kinds of faults might come from the SuiteTalk api might randomly show up.
Example. A
Savon::SOAPFault
related toExceededConcurrentRequestLimitFault
should trigger something likeNetSuite::RequestLimitError
extendingNetSuite::Error
, so that if someone wants to retry a netsuite action, they don't have to go through the song and dance of determining exactly what fault occurred, or if they just want to retry on any netsuite related error, just rescueNetSuite::Error
. Same thing for any network condition error that might occur at any time, it'd be nice to have aNetSuite::NetworkError
cover those details.The text was updated successfully, but these errors were encountered: