19 lines
324 B
C#
19 lines
324 B
C#
using MAX.Framework.Dtos;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Text;
|
|
|
|
namespace MAX.Framework.Commons
|
|
{
|
|
public class AppException : Exception
|
|
{
|
|
public int Code { get; }
|
|
|
|
public AppException(string message, int code = ResultCode.BusinessError)
|
|
: base(message)
|
|
{
|
|
Code = code;
|
|
}
|
|
}
|
|
}
|