public function createErrorView($errorMessage, $exception, $displayExceptions = false, $displayNavMenu = false )
    {
      $viewModel = new ViewModel(array(
          'navMenu' => $displayNavMenu,
          'display_exceptions' => $displayExceptions,
          'errorMessage' => $errorMessage,
          'exception' => $exception,
      ));
      $viewModel->setTemplate('csn-user/error/error');
      return $viewModel;
    }
public function createErrorView($errorMessage, $exception, $displayExceptions = false, $displayNavMenu = false )
    {
      $viewModel = new ViewModel(array(
          'navMenu' => $displayNavMenu,
          'display_exceptions' => $displayExceptions,
          'errorMessage' => $errorMessage,
          'exception' => $exception,
      ));
      $viewModel->setTemplate('csn-user/error/error');
      return $viewModel;
    }
public function createErrorView ( $ errorMessage , $ exception , $ displayExceptions = false , $ displayNavMenu = false ) { $ viewModel = new ViewModel ( array ( 'navMenu' => $ displayNavMenu , 'display_exceptions' => $ displayExceptions , 'errorMessage' => $ errorMessage , 'exception' => $ exception , ) ) ; $ viewModel -> setTemplate ( 'csn-user/error/error' ) ; return $ viewModel ; }
Create error view

Method to create error view to display possible exceptions

@return ViewModel
Create error view