| 
						
						
							
								
							
						
						
					 | 
				
				 | 
				
					@ -75,6 +75,17 @@ class Handler extends ExceptionHandler | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
									'status' => 500, | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
								]); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
							} | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
							//TypeError && ParseError
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
							if ($e instanceof \TypeError || $e instanceof \ParseError) { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
								return response()->json([ | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
									'code' => -1, | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
									'msg' => $e->getMessage(), | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
									'data' => [], | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
									'status' => 500, | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
									'file' => $e->getFile(), | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
									'line' => $e->getLine(), | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
								]); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
							} | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
							//Exception
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
							if ($e instanceof \Exception) { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
								return response()->json([ | 
				
			
			
		
	
	
		
			
				
					| 
						
						
						
							
								
							
						
					 | 
				
				 | 
				
					@ -84,6 +95,17 @@ class Handler extends ExceptionHandler | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
									'status' => 500, | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
								]); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
							} | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
							//Exception
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
							if ($e instanceof \Error) { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
								return response()->json([ | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
									'code' => -1, | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
									'msg' => $e->getMessage(), | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
									'data' => [], | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
									'status' => 500, | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
									'file' => $e->getFile(), | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
									'line' => $e->getLine(), | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
								]); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
							} | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
							return parent::render($request, $e); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
						} | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					} |