Update: Added error class