Skip to contents

Tests whether an object is a deputy error condition.

Usage

is_deputy_error(x, class = NULL)

Arguments

x

Object to test

class

Optional specific error class to check for (without "deputy_" prefix)

Value

Logical indicating if x is a deputy error (of the specified class)

Examples

if (FALSE) { # \dontrun{
tryCatch(
  abort_deputy("test"),
  error = function(e) {
    is_deputy_error(e)
    # TRUE
  }
)
} # }