text: class BootstrapError(Exception):
      """Application initialization error"""
  
  
  class ServiceUninitialized(RuntimeError):
      pass
  
  
  class RequestError(RuntimeError):
      detail = None
      orig = None
  
      def __init__(self, detail, orig=None):
          self.detail = detail
          self.orig = orig
  
  
  class NoSuchRecord(RequestError):
      """Requested record doesn't exist"""
  
  
  class IneffectiveDelete(RequestError):
      """Raised when a delete operation didn't delete anything"""
  
  
  class PayloadDecodeError(RequestError):
      """Error decoding the request JSON body"""
  
  
  class PayloadValidationError(RequestError):
      """Payload of a POST request failed validation"""
  
  
  class NoDatabaseAccess(RequestError):
      """Database access was attempted on a Service without a database attached"""
  