class_docstr: Temporary layer class for storing raise on exception.
class_docstr_tok: ["Temporary","layer","class","for","storing","raise","on","exception","."]
code: def __init__(self, raise_on_exception):
      self.raise_on_exception = raise_on_exception
  
imports: import numpy
  from mlens.externals.sklearn.base import clone
  from mlens.utils.checks import check_ensemble_build, assert_valid_estimator, assert_correct_format, check_initialized
  from mlens.utils.dummy import OLS, Scale
  from mlens.testing import EstimatorContainer
  from mlens.utils.exceptions import LayerSpecificationError, LayerSpecificationWarning, NotFittedError, ParallelProcessingError, ParallelProcessingWarning
label_desc: Use image node_id 1 to create a new Lyr object from inherited base classes: object with example: obj = Lyr(raise_on_exception)