module SocialMedia

Constants

NotProvided
Unauthorized
VERSION

Public Class Methods

convert_exception_class(exception, klass) click to toggle source
# File lib/social_media/errors.rb, line 2
def self.convert_exception_class exception, klass
  return exception if exception.is_a?(klass)
  e = klass.new("#{exception.class}: #{exception.message}")
  e.wrapped_exception = exception
  e.set_backtrace(exception.backtrace)
  e
end