Class Error
A service that handles exception and display pretty exception message
- Wei\Base
 - 
			
Wei\Error			
			
			
		 
			 public 
			
			
			
		 | 
		|
			 public 
			
			
			
		 | 
		|
			 public 
			
			
			
		 | 
		|
			 public 
			
			
			
		 | 
		|
			 protected 
			
			
			
		 | 
		|
			 protected 
			
			
			
		 | 
		|
			 protected 
			
			
			
		 | 
		|
			 public 
			boolean
			
			
		 | 
		|
			 public 
			
			
			
		 | 
		|
			 public 
			
			
			
		 | 
		|
			 public 
			
			
			
		 | 
		|
			 public 
			
			
			
		 | 
		
		#
		 handleError( integer $code, string $message, string $file, integer $line )
		The error handler convert PHP error to exception  | 
	
			 public 
			string
			
			
		 | 
		
			__call(), 
			__get(), 
			getOption(), 
			setOption()
		 | 
	
			protected  
			string
		 | 
		
				$message
			 The default error message display when debug is not enable  | 
		
			 
				#
				 
		'Error'
			 | 
	
			protected  
			string
		 | 
		
				$detail
			 The detail error message display when debug is not enable  | 
		
			 
				#
				 
		'Unfortunately, an error occurred. Please try again later.'
			 | 
	
			protected  
			string
		 | 
		
				$notFoundDetail
			 The detail error message display when thrown 404 exception  | 
		
			 
				#
				 
		'Sorry, the page you requested was not found. Please check the URL and try again.'
			 | 
	
			protected  
			boolean
		 | 
		
				$ignorePrevHandler
			 Whether ignore the previous exception handler or attach it again to the exception event  | 
		
			 
				#
				 
		false
			 | 
	
			protected  
			null|callable
		 | 
		
				$prevExceptionHandler
			 The previous exception handler  | 
		|
			protected  
			array
		 | 
		
				$handlers
			 The custom error handlers  | 
		
			 
				#
				 
		array(
    'error'     => array(),
    'fatal'     => array(),
    'notFound'  => array()
)
			 | 
	
			$providers, 
			$wei
		 | 
	
			public  
			 | 
		
				$logger
			 The logger wei  | 
	
			public  
			 | 
		
				$response
			 The HTTP response wei  |