You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: service_exception.rb
    path of file: ./repos/vets-api/lib/lighthouse
    
    the code of the file until where you have to start completion: # frozen_string_literal: true

module Lighthouse
  # Custom exception that maps Lighthouse API errors to controller ExceptionHandling-friendly format
  #
  class ServiceException
    extend SentryL
    
    def self.error_object_details(error_body, status_code)
      status = status_code.to_s
      title = error_body['title'] || error_class(status_code).to_s
      detail = error_body['detail'] ||
               error_body['message'] ||
               error_body['error'] ||
               error_body['error_description'] ||
               'No details provided'
      code = error_body['code'] || status

      [status, title, detail, code]
    end