Windows 앱
콘텐츠의 테이블 축소
콘텐츠의 테이블 확장
EN
이 콘텐츠는 한국어로 제공되지 않아 영어 버전으로 표시됩니다.

WinJS.Promise.wrapError function

Applies to Windows and Windows Phone

Wraps a non-promise error value in a promise. You can use this function if you need to pass an error to a function that requires a promise.

Syntax


var promise = WinJS.Promise.wrapError(error);

Parameters

error

Type:

A non-promise error value to be wrapped in a promise.

Return value

Type: Promise

A promise that is in an error state with the specified value.

Requirements

Minimum WinJS version

WinJS 1.0

Namespace

WinJS.Promise

See also

Promise

 

 

표시:
© 2017 Microsoft