HsSVN-0.4.3.1: Partial Subversion (SVN) binding for HaskellContentsIndex
Subversion.Error
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 an Exception.
Synopsis
data SvnError
svnErrCode :: SvnError -> SvnErrCode
svnErrMsg :: SvnError -> String
data SvnErrCode
= AprEEXIST
| AprENOENT
| DirNotEmpty
| ReposLocked
| FsAlreadyExists
| FsConflict
| FsNoSuchRevision
| FsNotDirectory
| FsNotFile
| FsNotFound
| UnknownError !Int
Documentation
data SvnError
SvnError represents a Subversion error.
show/hide 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.
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
AprEEXISTAPR EEXIST error: typically it means something you tried to create was already there.
AprENOENTAPR ENOENT error: typically it means something you tried to use wasn't there.
DirNotEmptyThe directory needs to be empty but it's not.
ReposLockedThe repository was locked, perhaps for db recovery.
FsAlreadyExistsThe item already existed in filesystem.
FsConflictMerge conflict has occured during commit.
FsNoSuchRevisionIt was an invalid filesystem revision number.
FsNotDirectoryIt was not a filesystem directory entry.
FsNotFileIt was not a filesystem file entry.
FsNotFoundIt wasn't there in filesystem.
UnknownError !IntAny 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 will stop working.
show/hide Instances
Produced by Haddock version 2.6.0