appcenter-cli
Version:
Command line tool for Visual Studio App Center
112 lines (107 loc) • 2.83 kB
JavaScript
/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is
* regenerated.
*/
;
/**
* a exception
*
*/
class Exception {
/**
* Create a Exception.
* @property {string} [reason] Reason of the exception
* @property {string} [type] Type of the exception (NSSomethingException,
* NullPointerException)
* @property {array} frames frames of the excetpion
* @property {boolean} [relevant] relevant exception (crashed)
* @property {array} [innerExceptions]
* @property {string} [platform] SDK/Platform this thread is beeing generated
* from. Possible values include: 'ios', 'android', 'xamarin',
* 'react-native', 'ndk', 'unity', 'other'
*/
constructor() {
}
/**
* Defines the metadata of Exception
*
* @returns {object} metadata of Exception
*
*/
mapper() {
return {
required: false,
serializedName: 'Exception',
type: {
name: 'Composite',
className: 'Exception',
modelProperties: {
reason: {
required: false,
serializedName: 'reason',
type: {
name: 'String'
}
},
type: {
required: false,
serializedName: 'type',
type: {
name: 'String'
}
},
frames: {
required: true,
serializedName: 'frames',
type: {
name: 'Sequence',
element: {
required: false,
serializedName: 'StackFrameElementType',
type: {
name: 'Composite',
className: 'StackFrame'
}
}
}
},
relevant: {
required: false,
serializedName: 'relevant',
type: {
name: 'Boolean'
}
},
innerExceptions: {
required: false,
serializedName: 'inner_exceptions',
type: {
name: 'Sequence',
element: {
required: false,
serializedName: 'ExceptionElementType',
type: {
name: 'Composite',
className: 'Exception'
}
}
}
},
platform: {
required: false,
serializedName: 'platform',
type: {
name: 'String'
}
}
}
}
};
}
}
module.exports = Exception;