24 lines
427 B
C#
24 lines
427 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace DG.Core
|
|
{
|
|
public class DGException : Exception
|
|
{
|
|
public DGException(string? message)
|
|
: base(message)
|
|
{
|
|
|
|
}
|
|
|
|
public DGException(string? message, int code)
|
|
: base(message)
|
|
{
|
|
Data.Add("code", code);
|
|
}
|
|
}
|
|
}
|