Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

[3abb2e]: ForgeClassic / sfx / lib / exceptions.py Maximize Restore History

Download this file

exceptions.py    20 lines (16 with data), 538 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
from allura.lib import exceptions
class SFXError(exceptions.ToolError): pass
class SFXIllegalProject(SFXError): pass
class SFXAPIError(SFXError): pass
class SFXBadRequest(SFXAPIError): pass
class SFXUnauthorized(SFXAPIError): pass
class SFXForbidden(SFXAPIError): pass
class SFXNotFound(SFXAPIError): pass
class SFXGone(SFXAPIError): pass
SFXAPIError.status_map = {
400:SFXBadRequest,
401:SFXUnauthorized,
403:SFXForbidden,
404:SFXNotFound,
409:exceptions.ProjectConflict,
410:SFXGone }