Discussions
Read on for the latest updates including:
• Agenda Builder launch
• SuiteWorld On Air registration
• New NetSuite Prompt Studio Contest
• And more!
Check out this thread to learn more!
Don’t miss your chance to meet our SuiteGurus—NetSuite Support professionals and subject matter experts with extensive experience in select product areas, including OneWorld, Advanced & Basic Accounting, Supply Chain Management, Receivables & Payables, CRM, Account Administration, and the SuiteCloud Platform. Full Conference attendees can prebook exclusive 30-minute one-on-one sessions for your product questions.
Spots are limited! Register through your Agenda Builder and find SuiteGuru under Agenda Enhancements.
throw CreateException issue PT 8.55
Hello,
I am struggling with an error handling issue with passing error message string based on some conditions. Here is what my code currently looks like:
import PS_PT:Integration:IRequestHandler;
class XXX_INV implements PS_PT:Integration:IRequestHandler
method Rate();
method OnRequest(&MSG As Message) Returns Message;
method OnRequest1(&MSG As Message) Returns Message;
method OnRequest2(&MSG As Message) Returns Message;
method OnError(&MSG As Message) Returns string;
/* property integer OnErrorHttpResponseCode;
property string OnErrorContentType;*/
private
instance integer &ResponseStatusCode;
instance string &errorMessage;
end-class;
Method OnRequest
.
.
.
If None(&Tbl) Then
&errorMessage = "The invoice you requested does not exist.";
throw CreateException(0, 0, &errorMessage);