Repository URL to install this package:
Version:
0.9.11 ▾
|
module ActionSprout::Facebook
class FacebookError < StandardError
# Intentional Liskov Violation because Bugsnag will include
# the #original_exception and we can filter/ignore based on handled
attr_reader :original_exception, :resolved, :give_up, :ignore, :context
def initialize(message, original_exception = nil, **context)
super(message)
@original_exception = original_exception
@resolved = false
@give_up = false
@ignore = false
@context = context
end
alias :resolved? :resolved
alias :give_up? :give_up
alias :ignore? :ignore
def resolve
@resolved = true
end
def give_up
@give_up = true
end
def ignore
@ignore = true
end
end
class RetriableError < FacebookError
end
class AuthenticationError < FacebookError
end
class FatalError < FacebookError
end
class PageMigratedError < FacebookError
end
class NotFoundError < FacebookError
end
class UnsupportedRequest < FacebookError
end
end