Constructor
new ErrorHandler(functiontocall, rethrow, errorcallback) → {*}
A little Error handler for faster debugging
With this small Error class we can control the building of the Banner
Each class or function in the project shut have a Debug message.
If debugging is enable the function calls go to the js console in the Browser.
Parameters:
Name | Type | Description |
---|---|---|
functiontocall |
function | Funktionsaufruf |
rethrow |
boolean | Rethrow |
errorcallback |
funktion | Funktion im Fehlerfall |
- Version:
- 0.0.1
- Since:
- 07.09.2017
- Source:
Returns:
- Type
- *
Example
ERR = new SDI.LIBRARY.ErrorHandler(
function(){
//zu überwachender Code
},
false,
function(){
//zusätzliche Fehlerfunktion
}
);
Methods
(static) createIframe(inhalt)
Creates an Iframe when an error occurred
If tis iframe was created it is append to the body
Parameters:
Name | Type | Description |
---|---|---|
inhalt |
string | Der Inhalt des IFarmes |
- Source:
(static) removeDebuglevel()
Remove the Debug Level from Local Storage
- Source:
(static) setDebuglevel(debuglevel)
Sets the Debuglevel
Alternative can you set the DEBUGLEVEL with the js console command
localStorage.setItem('DEBUGLEVEL',1);
for the correct values see DEBUGLEVEL
Parameters:
Name | Type | Description |
---|---|---|
debuglevel |
- Source:
- See: