Added specs and made the default exception StandardError.