Constructor
new PKM_Error(code, error)
constructor
Parameters:
Name | Type | Description |
---|---|---|
code |
Number | error code |
error |
* | error data |
- Source:
Methods
(static) from(error) → {PKM_Error}
Create an instance of PKM_Error from a foreign error or a bare string
Parameters:
Name | Type | Description |
---|---|---|
error |
Object | string | an error |
- Source:
Returns:
a PKM_Error instance
- Type
- PKM_Error