Commit cde4c257 authored by Rafael Monnerat's avatar Rafael Monnerat

slapos.slap: Reorganise Hateaos code

  Move Hateoas related code from core API to an separated file slapos.slap.hateoas which can be reusable.
  Move exceptions to slapos.slap.exceptions to be able to use on both files
  Move Hateoas code from https://lab.nexedi.com/nexedi/slapos.toolbox/blob/master/slapos/agent/tester.py into slapos core to make it reusable.
parent bc4b8cfb
import zope.interface
from interface import slap as interface
class ResourceNotReady(Exception):
zope.interface.implements(interface.IResourceNotReady)
class ServerError(Exception):
zope.interface.implements(interface.IServerError)
class NotFoundError(Exception):
zope.interface.implements(interface.INotFoundError)
class AuthenticationError(Exception):
pass
class ConnectionError(Exception):
zope.interface.implements(interface.IConnectionError)
This diff is collapsed.
This diff is collapsed.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment