/// <summary>
/// If <see cref="ExceptionData"/> is null, this method creates the <see cref="CKExceptionData"/>
/// with the details from this exception.
/// </summary>
/// <returns>The <see cref="CKExceptionData"/> that describes this exception.</returns>
public CKExceptionData EnsureExceptionData()
{
if (_exceptionData == null)
{
var inner = CKExceptionData.CreateFrom(InnerException);
_exceptionData = new CKExceptionData(Message, "CKException", GetType().AssemblyQualifiedName, StackTrace, inner, null, null, null, null);
}
return(_exceptionData);
}