|
|
|
Description |
Common exception handling for Subversion. The C API of the
Subversion returns an error as a function result, but in HsSVN
errors are thrown as a DynException.
|
|
Synopsis |
|
|
|
Documentation |
|
data SvnError |
SvnError represents a Subversion error.
| Instances | |
|
|
svnErrCode :: SvnError -> SvnErrCode |
svnErrCode err returns a SvnErrCode for an error object.
|
|
svnErrMsg :: SvnError -> String |
svnErrMsg err returns an error message for an error object.
|
|
throwSvnErr :: SvnError -> IO a |
throwSvnErr err throws an SvnError object in an IO
monad. You usually don't need to use this directly.
|
|
data SvnErrCode |
SvnErrCode represents a Subversion error code. As you see, not
all errors are translated to Haskell constructors yet. Uncovered
error codes are temporarily represented as UnknownError num.
| Constructors | AprEEXIST | APR EEXIST error: typically it means
something you tried to create was already
there.
| AprENOENT | APR ENOENT error: typically it means
something you tried to use wasn't there.
| DirNotEmpty | The directory needs to be empty but it's not.
| ReposLocked | The repository was locked, perhaps for db
recovery.
| FsAlreadyExists | The item already existed in filesystem.
| FsConflict | Merge conflict has occured during commit.
| FsNoSuchRevision | It was an invalid filesystem revision
number.
| FsNotDirectory | It was not a filesystem directory entry.
| FsNotFile | It was not a filesystem file entry.
| FsNotFound | It wasn't there in filesystem.
| UnknownError !Int | Any other errors than above. You
shouldn't rely on the absence of
appropriate SvnErrCode constructors
because they may be added in the future
version of HsSVN. If that happens to you,
your code stops working.
|
| Instances | |
|
|
Produced by Haddock version 0.8 |