OfficeExtension


Error

Error Object
The error object that is returned by "context.sync()" when a promise is rejected while processing the request.
Properties

code(string) short name of the error
debugInfo(OfficeExtension.DebugInfo) more useful information
innerError(Error) inner message, if applicable
message(string) description of the error
name(string) always OfficeExtension.Error
stack(string) stack trace, if applicable
traceMessage(string[]) trace messages added via context.trace()

DebugInfo

Provides useful information about an error.
Properties

code(string)
errorLocation(string)
fullStatements(string[])
innerError 
message(string)
statements(string)
surroundingStatements(string)

ErrorCodes

These are all string values

accessDenied 
activityLimitReached 
apiNotFound 
cannotRegisterEvent 
connectionFailure 
generalException 
invalidArgument 
invalidObjectPath 
invalidRequestContext 
propertyNotLoaded 
runMustReturnPromise 
valueNotLoaded 


© 2019 Better Solutions Limited. All Rights Reserved. © 2019 Better Solutions Limited TopPrevNext