exceptionPackage: Access the package data in an Exception

Description Usage Arguments Value See Also Examples

Description

An S3 method to extract the package in which an Exception occurred. Can be applied to any Exception derived object, but there is no default version.

Usage

1
2
3
4
exceptionPackage(e, ...)

## S3 method for class 'Exception'
exceptionPackage(e, ...)

Arguments

e

The Exception object to query

...

Future-proof the S3 generic method; not used here.

Value

The package where the Exception was generated.

See Also

Exception

Examples

1
2
3
4
5
e <- Exception()
package <- exceptionPackage(e)

e <- IOException()
package <- exceptionPackage(e)

jefferys/Exception documentation built on May 19, 2019, 3:59 a.m.