Use custom exceptions instead of StandardError