2017-12-08 4 views

답변

0

나는 해결책을 발견 :

나는이 기존의 오류 클래스

export declare class HttpErrorResponse extends HttpResponseBase implements Error { 
readonly name: string; 
readonly message: string; 
readonly error: any | null; 
/** 
* Errors are never okay, even when the status code is in the 2xx success range. 
*/ 
readonly ok: boolean; 
constructor(init: { 
    error?: any; 
    headers?: HttpHeaders; 
    status?: number; 
    statusText?: string; 
    url?: string; 


}); 

}

각도 4.3의 새로운 구성원을 추가하는 의심한다. 오류 메시지를 가로 채서 액세스 페이로드를 추가하고 오류 개체로 전달해야합니다.

error.payload = request.data