-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy patherror.js
81 lines (72 loc) · 1.69 KB
/
error.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
/**
* SuiteScript Error Handling APIs
*/
/**
* Create an nlobjError object that can be used to abort script execution and configure error notification
* This API is supported in user event, scheduled, portlet, and Suitelet scripts.
*
* @param {string} code error code
* @param {string} details error description
* @param {boolean} [suppressEmail=false] if true then suppress the error notification emails from being sent out
*
* @return {nlobjError}
* @since 2008.2
*/
function nlapiCreateError(code, details, suppressEmail) {
}
/**
* Encapsulation of errors thrown during script execution
* Return a new instance of nlobjError used system or user-defined error object
*
* @constructor
*/
function nlobjError() {
}
/**
* Return the error db ID for this error (if it was an unhandled unexpected error)
*
* @return {string}
* @since 2008.2
*/
nlobjError.prototype.getId = function() {
};
/**
* Return the error code for this system or user-defined error
*
* @return {string}
* @since 2008.2
*/
nlobjError.prototype.getCode = function() {
};
/**
* Return the error description for this error
*
* @return {string}
* @since 2008.2
*/
nlobjError.prototype.getDetails = function() {
};
/**
* Return a stacktrace containing the location of the error
*
* @return {string[]}
* @since 2008.2
*/
nlobjError.prototype.getStackTrace = function() {
};
/**
* Return the userevent script name where this error was thrown
*
* @return {string}
* @since 2008.2
*/
nlobjError.prototype.getUserEvent = function() {
};
/**
* Return the internalid of the record if this error was thrown in an aftersubmit script
*
* @return {int}
* @since 2008.2
*/
nlobjError.prototype.getInternalId = function() {
};