29 lines
706 B
C#
29 lines
706 B
C#
using Syc.Abp.Application.Contracts;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
public class Oops
|
|
{
|
|
/// <summary>
|
|
/// 卧槽,报错了
|
|
/// </summary>
|
|
/// <returns></returns>
|
|
public static FriendlyException Oh(string message, int code = -1)
|
|
{
|
|
return new FriendlyException(message, code);
|
|
}
|
|
|
|
/// <summary>
|
|
/// 规范抛错
|
|
/// </summary>
|
|
/// <param name="message"></param>
|
|
/// <param name="code"></param>
|
|
/// <returns></returns>
|
|
public static FriendlyException Bad(string message, int code = -1)
|
|
{
|
|
return new FriendlyException(message, code);
|
|
}
|
|
} |