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
Copy file name to clipboardExpand all lines: README.md
+20-4Lines changed: 20 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -65,6 +65,8 @@ exceptions.js adds the exceptions property to the window object which exposes:
65
65
| TypeException | An exception inherited from Exception that is useful for throwing or reporting exceptions related to type errors |
66
66
| URIException | An exception inherited from Exception that is useful for throwing or reporting exceptions related to URI errors |
67
67
| createCustomException | Function you can use to create custom functions. ArgumentException, InvalidOperationException, and NotImplementedException are all created with createCustomException |
68
+
| throwIf | Shorthand method to invoke Exception.throwIf. Use this function to conditionally throw exceptions. |
69
+
| reportIf | Shorthand method to invoke Exception.reportIf. Use this function to conditionally throw exceptions. |
68
70
69
71
### Exception
70
72
@@ -212,7 +214,7 @@ _return_
212
214
213
215
###### report
214
216
215
-
Report the exception (without throwing it). Reporting an exception involves making a post request with a serialized exception object if the post option is enabled and/or executing a callback if the callback option is enabled. The post request uses the url returned from exception.handler.reportUrl() and headers returned from exception.handler.postHeaders(). It will not make a post request if no url is specified. The callback will execute the function returned from exceptions.handlers.callback and will not execute the callback if no function is specified.
217
+
Report the exception (without throwing it). Reporting an exception involves making a post request with a serialized exception object if the post request option is enabled, posting to the exception.js platform, and/or executing a custom report function if the report callback option is enabled.
216
218
217
219
218
220
###### toSerializableObject
@@ -473,7 +475,7 @@ Helper function to get the count of reported exceptions (see handler.reportedExc
473
475
| seconds | int | no | Last number of seconds for which we care to count exceptions. If not specified, we'll use the total number of exceptions reported since the exception handler was setup.|
474
476
475
477
##Options
476
-
Options for an exception. Options include retrieving a stacktrace, printing a screenshot, posting a serialized JSON representation of an exception to a specified url when the exception is reported, and/or excecuting a callback that recieves the exception when the exception is reported.
478
+
Options for an exception. Options include retrieving a stacktrace, printing a screenshot, posting a serialized JSON representation of an exception to a specified url when the exception is reported, posting a request to the exceptionsjs platform, and/or excecuting a reportCallback that receives the exception when the exception is reported.
477
479
478
480
##### methods
479
481
@@ -517,14 +519,14 @@ _return_
517
519
| Options|bool | Options object if enable is defined, value of the post option if enable is not defined. |
518
520
519
521
###### reportCallback
520
-
Get or set the retrieve callback option.
522
+
Get or set the report callback option.
521
523
522
524
| Parameter | Type | Required | Description |
523
525
| --------- | ---- | -------- | ----------- |
524
526
| enable | bool | no | Return the current option if undefined. Enable the callback option if enable is true. Disable the callback option if enable is false. |
525
527
526
528
###### reportToExceptionsJsPlatform
527
-
Get or set the retrieve report to exceptionsjs platform option.
529
+
Get or set the report to exceptionsjs platform option.
528
530
529
531
| Parameter | Type | Required | Description |
530
532
| --------- | ---- | -------- | ----------- |
@@ -536,6 +538,20 @@ _return_
536
538
| ---- | ----------- |
537
539
| Options|bool | Options object if enable is defined, value of the callback option if enable is not defined. |
538
540
541
+
###### DOMDump
542
+
Get or set the DOM dump option.
543
+
544
+
| Parameter | Type | Required | Description |
545
+
| --------- | ---- | -------- | ----------- |
546
+
| enable | bool | no | Return the current option if undefined. Enable the DOM dump option if enable is true. Disable the DOM dump option if enable is false. |
547
+
548
+
_return_
549
+
550
+
| Type | Description |
551
+
| ---- | ----------- |
552
+
| Options|bool | ptions object if enable is defined, value of the DOM dump option if enable is not defined. |
553
+
554
+
539
555
###### toggleAll
540
556
Toggle all options according to the enable parameter
0 commit comments