| Safe Haskell | Safe-Inferred |
|---|---|
| Language | Haskell2010 |
SDL.Exception
Synopsis
- data SDLException
- = SDLCallFailed {
- sdlExceptionCaller :: !Text
- sdlFunction :: !Text
- sdlExceptionError :: !Text
- | SDLUnexpectedArgument {
- sdlExceptionCaller :: !Text
- sdlFunction :: !Text
- sdlUnknownValue :: !String
- | SDLUnknownHintValue {
- sdlHint :: !String
- sdlUnknownValue :: !String
- = SDLCallFailed {
Documentation
data SDLException Source #
Error details about a failure to call an SDL routine. Almost all functions in this library have the ability to produce exceptions of this type. Inspection should help you learn more about what has gone wrong.
Constructors
| SDLCallFailed | A call to a low-level SDL C function failed unexpectedly. |
Fields
| |
| SDLUnexpectedArgument | An SDL C function was called with an unexpected argument. |
Fields
| |
| SDLUnknownHintValue | A hint was attempted to be set, but SDL does not know about this hint. |
Fields
| |
Instances
| Data SDLException Source # | |||||
Defined in SDL.Exception Methods gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> SDLException -> c SDLException gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c SDLException toConstr :: SDLException -> Constr dataTypeOf :: SDLException -> DataType dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c SDLException) dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c SDLException) gmapT :: (forall b. Data b => b -> b) -> SDLException -> SDLException gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> SDLException -> r gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> SDLException -> r gmapQ :: (forall d. Data d => d -> u) -> SDLException -> [u] gmapQi :: Int -> (forall d. Data d => d -> u) -> SDLException -> u gmapM :: Monad m => (forall d. Data d => d -> m d) -> SDLException -> m SDLException gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> SDLException -> m SDLException gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> SDLException -> m SDLException | |||||
| Exception SDLException Source # | |||||
Defined in SDL.Exception Methods toException :: SDLException -> SomeException fromException :: SomeException -> Maybe SDLException displayException :: SDLException -> String backtraceDesired :: SDLException -> Bool | |||||
| Generic SDLException Source # | |||||
Defined in SDL.Exception Associated Types
| |||||
| Read SDLException Source # | |||||
Defined in SDL.Exception Methods readsPrec :: Int -> ReadS SDLException readList :: ReadS [SDLException] readPrec :: ReadPrec SDLException readListPrec :: ReadPrec [SDLException] | |||||
| Show SDLException Source # | |||||
Defined in SDL.Exception Methods showsPrec :: Int -> SDLException -> ShowS show :: SDLException -> String showList :: [SDLException] -> ShowS | |||||
| Eq SDLException Source # | |||||
Defined in SDL.Exception | |||||
| Ord SDLException Source # | |||||
Defined in SDL.Exception Methods compare :: SDLException -> SDLException -> Ordering (<) :: SDLException -> SDLException -> Bool (<=) :: SDLException -> SDLException -> Bool (>) :: SDLException -> SDLException -> Bool (>=) :: SDLException -> SDLException -> Bool max :: SDLException -> SDLException -> SDLException min :: SDLException -> SDLException -> SDLException | |||||
| type Rep SDLException Source # | |||||
Defined in SDL.Exception type Rep SDLException = D1 ('MetaData "SDLException" "SDL.Exception" "sdl2-2.5.5.1-AgF6e4ywebPJjPO67cQCnV" 'False) (C1 ('MetaCons "SDLCallFailed" 'PrefixI 'True) (S1 ('MetaSel ('Just "sdlExceptionCaller") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Text) :*: (S1 ('MetaSel ('Just "sdlFunction") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "sdlExceptionError") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Text))) :+: (C1 ('MetaCons "SDLUnexpectedArgument" 'PrefixI 'True) (S1 ('MetaSel ('Just "sdlExceptionCaller") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Text) :*: (S1 ('MetaSel ('Just "sdlFunction") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "sdlUnknownValue") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 String))) :+: C1 ('MetaCons "SDLUnknownHintValue" 'PrefixI 'True) (S1 ('MetaSel ('Just "sdlHint") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 String) :*: S1 ('MetaSel ('Just "sdlUnknownValue") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 String)))) | |||||