Copyright | Will Thompson Iñaki García Etxebarria and Jonas Platte |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria (garetxe@gmail.com) |
Safe Haskell | None |
Language | Haskell2010 |
GI.JavaScriptCore.Objects.Exception
Contents
Description
No description available in the introspection data.
Synopsis
- newtype Exception = Exception (ManagedPtr Exception)
- class GObject o => IsException o
- toException :: (MonadIO m, IsException o) => o -> m Exception
- noException :: Maybe Exception
- exceptionGetBacktraceString :: (HasCallStack, MonadIO m, IsException a) => a -> m (Maybe Text)
- exceptionGetColumnNumber :: (HasCallStack, MonadIO m, IsException a) => a -> m Word32
- exceptionGetLineNumber :: (HasCallStack, MonadIO m, IsException a) => a -> m Word32
- exceptionGetMessage :: (HasCallStack, MonadIO m, IsException a) => a -> m Text
- exceptionGetName :: (HasCallStack, MonadIO m, IsException a) => a -> m Text
- exceptionGetSourceUri :: (HasCallStack, MonadIO m, IsException a) => a -> m (Maybe Text)
- exceptionNew :: (HasCallStack, MonadIO m, IsContext a) => a -> Text -> m Exception
- exceptionNewWithName :: (HasCallStack, MonadIO m, IsContext a) => a -> Text -> Text -> m Exception
- exceptionReport :: (HasCallStack, MonadIO m, IsException a) => a -> m Text
- exceptionToString :: (HasCallStack, MonadIO m, IsException a) => a -> m Text
Exported types
Memory-managed wrapper type.
Constructors
Exception (ManagedPtr Exception) |
Instances
GObject Exception Source # | |
Defined in GI.JavaScriptCore.Objects.Exception Methods gobjectType :: Exception -> IO GType # | |
IsObject Exception Source # | |
Defined in GI.JavaScriptCore.Objects.Exception | |
IsException Exception Source # | |
Defined in GI.JavaScriptCore.Objects.Exception |
class GObject o => IsException o Source #
Type class for types which can be safely cast to Exception
, for instance with toException
.
Instances
(GObject a, (UnknownAncestorError Exception a :: Constraint)) => IsException a Source # | |
Defined in GI.JavaScriptCore.Objects.Exception | |
IsException Exception Source # | |
Defined in GI.JavaScriptCore.Objects.Exception |
toException :: (MonadIO m, IsException o) => o -> m Exception Source #
Methods
getBacktraceString
exceptionGetBacktraceString Source #
Arguments
:: (HasCallStack, MonadIO m, IsException a) | |
=> a |
|
-> m (Maybe Text) | Returns: the exception backtrace string or |
Get a string with the exception backtrace.
getColumnNumber
exceptionGetColumnNumber Source #
Arguments
:: (HasCallStack, MonadIO m, IsException a) | |
=> a |
|
-> m Word32 | Returns: the column number of |
Get the column number at which exception
happened.
getLineNumber
exceptionGetLineNumber Source #
Arguments
:: (HasCallStack, MonadIO m, IsException a) | |
=> a |
|
-> m Word32 | Returns: the line number of |
Get the line number at which exception
happened.
getMessage
Arguments
:: (HasCallStack, MonadIO m, IsException a) | |
=> a |
|
-> m Text | Returns: the |
Get the error message of exception
.
getName
Arguments
:: (HasCallStack, MonadIO m, IsException a) | |
=> a |
|
-> m Text | Returns: the |
Get the error name of exception
getSourceUri
exceptionGetSourceUri Source #
Arguments
:: (HasCallStack, MonadIO m, IsException a) | |
=> a |
|
-> m (Maybe Text) | Returns: the the source URI of |
Get the source URI of exception
.
new
Arguments
:: (HasCallStack, MonadIO m, IsContext a) | |
=> a |
|
-> Text |
|
-> m Exception | Returns: a new |
Create a new Exception
in context
with message
.
newWithName
Arguments
:: (HasCallStack, MonadIO m, IsContext a) | |
=> a |
|
-> Text |
|
-> Text |
|
-> m Exception | Returns: a new |
Create a new Exception
in context
with name
and message
.
report
Arguments
:: (HasCallStack, MonadIO m, IsException a) | |
=> a |
|
-> m Text | Returns: a new string with the exception report |
Return a report message of exception
, containing all the possible details such us
source URI, line, column and backtrace, and formatted to be printed.
toString
Arguments
:: (HasCallStack, MonadIO m, IsException a) | |
=> a |
|
-> m Text | Returns: the string representation of |
Get the string representation of exception
error.