Refactored error message pointer as re-usable class, whose direction (point to left or right) and thickness can be configured.