Files
codeocean/app/errors/runner/error.rb
Felix Auringer b48b45de9f Refactor error classes
All runner errors are now in a single file. The not found error
has been splitted into an error for runner not found and for
environment not found.
2021-11-01 17:12:50 +01:00

22 lines
395 B
Ruby

# frozen_string_literal: true
class Runner
class Error < ApplicationError
class BadRequest < Error; end
class EnvironmentNotFound < Error; end
class ExecutionTimeout < Error; end
class InternalServerError < Error; end
class NotAvailable < Error; end
class Unauthorized < Error; end
class RunnerNotFound < Error; end
class Unknown < Error; end
end
end