Copyright | (c) Ivan Lazar Miljenovic |
---|---|
License | 3-Clause BSD-style |
Maintainer | Ivan.Miljenovic@gmail.com |
Safe Haskell | Safe |
Language | Haskell2010 |
Data.GraphViz.Exception
Contents
Description
Synopsis
- data GraphvizException
- = NotDotCode String
- | NotUTF8Dot String
- | GVProgramExc String
- | NotCustomAttr String
- mapException :: (Exception e1, Exception e2) => (e1 -> e2) -> a -> a
- throw :: forall (r :: RuntimeRep) (a :: TYPE r) e. Exception e => e -> a
- handle :: Exception e => (e -> IO a) -> IO a -> IO a
- bracket :: IO a -> (a -> IO b) -> (a -> IO c) -> IO c
Documentation
data GraphvizException Source #
Exceptions that arise from using this library fall into four categories:
- Unable to parse provided Dot code.
- Dot code is not valid UTF-8.
- An error when trying to run an external program (e.g.
dot
). - Treating a non-custom Attribute as a custom one.
Constructors
NotDotCode String | |
NotUTF8Dot String | |
GVProgramExc String | |
NotCustomAttr String |
Instances
Re-exported for convenience.
mapException :: (Exception e1, Exception e2) => (e1 -> e2) -> a -> a #