* complete implementation; specs remain * complete specs * better implementation * more appropriate error msg * ALSO change error msg in spec
18 lines
251 B
Ruby
18 lines
251 B
Ruby
module TwitterClient
|
|
module Errors
|
|
class Error < StandardError
|
|
end
|
|
|
|
class ClientError < Error
|
|
end
|
|
|
|
class ServerError < Error
|
|
end
|
|
|
|
class NotFound < ClientError
|
|
end
|
|
|
|
class BadRequest < ClientError
|
|
end
|
|
end
|
|
end
|