error handler change export
This commit is contained in:
		
							parent
							
								
									5bda122da9
								
							
						
					
					
						commit
						5a733b747f
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -1,12 +1,12 @@
 | 
			
		|||
import {Context, Next} from 'koa';
 | 
			
		||||
 | 
			
		||||
interface ErrorFormat {
 | 
			
		||||
export interface ErrorFormat {
 | 
			
		||||
    code: number,
 | 
			
		||||
    message: string,
 | 
			
		||||
    detail?: string
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
export class ClientRequestError implements Error{
 | 
			
		||||
class ClientRequestError implements Error{
 | 
			
		||||
    name: string;
 | 
			
		||||
    message: string;
 | 
			
		||||
    stack?: string | undefined;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		
		Reference in a new issue