R/error.R

Defines functions handle_exception

# This file contains exception checking and error handling functions

#
# exception handling function for malformed input in lindia
#
handle_exception <- function(input, function_name){
   
   type = class(input)
   
   # exception handling : input not lm object
   if (type != "lm"){
      stop(paste(function_name, "doesn't know how to handle non-lm object"))
   }
   
}
yeukyul/lindia documentation built on Aug. 26, 2023, 1:35 a.m.