using System;
using System.Runtime.Serialization;
using JetBrains.Annotations;
namespace Abp.BackgroundJobs
{
[Serializable]
public class BackgroundJobException : AbpException
{
[CanBeNull]
public BackgroundJobInfo BackgroundJob { get; set; }
[CanBeNull]
public object JobObject { get; set; }
///
/// Creates a new object.
///
public BackgroundJobException()
{
}
///
/// Creates a new object.
///
public BackgroundJobException(SerializationInfo serializationInfo, StreamingContext context)
: base(serializationInfo, context)
{
}
///
/// Creates a new object.
///
/// Exception message
/// Inner exception
public BackgroundJobException(string message, Exception innerException)
: base(message, innerException)
{
}
}
}