Handles an error occurrence by logging it to the console
The error object
Optional
Optional custom error message
Handles a warning occurrence by logging it to the console
Optional warning message
Handles an error occurrence by logging it to the console