Updated exceptron driver to 0.1.0.34

This commit is contained in:
kay.one
2012-06-17 14:55:28 -07:00
parent 85914b5262
commit fb74a1a6a7
24 changed files with 2438 additions and 5 deletions
@@ -0,0 +1,79 @@
using System.Collections.Generic;
namespace Exceptron.Driver.Message
{
internal class ExceptionReport
{
/// <summary>
/// API key
/// </summary>
public string ap { get; set; }
/// <summary>
/// Application Version
/// </summary>
public string aver { get; set; }
/// <summary>
/// Exception Severity
/// </summary>
public int sv { get; set; }
/// <summary>
/// User or Instance ID
/// </summary>
public string uid { get; set; }
/// <summary>
/// Type of exception
/// </summary>
public string ext { get; set; }
/// <summary>
/// Exception message
/// </summary>
public string exm { get; set; }
/// <summary>
/// List of frames that make up the StackTrace of the exception
/// </summary>
public List<Frame> stk { get; set; }
/// <summary>
/// Component that experienced this exception
/// </summary>
public string cmp { get; set; }
/// <summary>
/// Environment that this exception occurred in.
/// </summary>
/// <example>Dev, Stage, Production</example>
public string env { get; set; }
/// <summary>
/// Message that was logged along with the exception.
/// </summary>
public string msg { get; set; }
/// <summary>
/// User's culture in
/// </summary>
/// <remarks>http://msdn.microsoft.com/en-us/library/system.globalization.cultureinfo.name.aspx</remarks>
public string cul { get; set; }
/// <summary>
/// OS Version
/// </summary>
public string os { get; set; }
/// <summary>
/// Name of the driver that generated and is sending this message
/// </summary>
public string dn { get; set; }
/// <summary>
/// Version of the driver that generated and is sending this message
/// </summary>
public string dv { get; set; }
}
}
@@ -0,0 +1,33 @@
using System;
namespace Exceptron.Driver.Message
{
public class ExceptionResponse
{
/// <summary>
/// Exception report reference ID. This ID will be shared across
/// similar exceptions
/// </summary>
public string RefId { get; internal set; }
/// <summary>
/// Was the report successfully processed on the server
/// </summary>
public bool Successful
{
get
{
return !string.IsNullOrEmpty(RefId);
}
}
/// <summary>
/// Exception that caused the message to fail.
/// </summary>
/// <remarks>
/// This property will only be populated if <see cref="ClientConfiguration.ThrowsExceptions"/> is set to <see cref="bool.False"/>/>
/// Exception is thrown if <see cref="ClientConfiguration.ThrowsExceptions"/> is set to <see cref="bool.True"/>.
/// </remarks>
public Exception Exception { get; internal set; }
}
}
+30
View File
@@ -0,0 +1,30 @@
namespace Exceptron.Driver.Message
{
internal class Frame
{
/// <summary>
/// Order of current frame
/// </summary>
public int i { get; set; }
/// <summary>
/// Line number of the current frame
/// </summary>
public int ln { get; set; }
/// <summary>
/// File name of the current frame
/// </summary>
public string fn { get; set; }
/// <summary>
/// Method name for current frame
/// </summary>
public string m { get; set; }
/// <summary>
/// Class name for current frame
/// </summary>
public string c { get; set; }
}
}