Skip to content

Instantly share code, notes, and snippets.

@ismkdc
Created April 12, 2023 16:02
Show Gist options
  • Save ismkdc/e71c567d199dc83eab81f67ca7d47e85 to your computer and use it in GitHub Desktop.
Save ismkdc/e71c567d199dc83eab81f67ca7d47e85 to your computer and use it in GitHub Desktop.
public class CustomErrors
{
public static CustomError E_100 = new(nameof(E_100), "Beklenmedik bir sistem hatası oluştu!");
public static CustomError E_200 = new(nameof(E_200), "Kullanıcı adı veya parola hatalı!");
public static CustomError E_201 = new(nameof(E_201), "Eposta zaten kayıtlı!");
public static CustomError E_202 = new(nameof(E_202), "Bütün alanları doldurunuz!");
public static CustomError E_203 = new(nameof(E_203), "Kayıtlı eposta bulunamadı!");
public static CustomError E_204 = new(nameof(E_204), "Hatalı bir aktifleştirme kodu girdiniz!");
public static CustomError E_205 = new(nameof(E_205), "Hesap aktif değil!");
public static CustomError E_206 = new(nameof(E_206), "Kullanıcı adı zaten kayıtlı!");
public static CustomError E_207 = new(nameof(E_207), "Mesaj 500 karakterden uzun olamaz!");
public static CustomError E_208 = new(nameof(E_208), "Susturma hakkınız bulunmamaktadır!");
public static CustomError E_209 = new(nameof(E_209),
"Susturma hakkı veya süresi moderatör olmayan katılımcılar için 0 (sonsuz) olamaz!");
public static CustomError E_210 = new(nameof(E_209), "Sadece moderatörler susturma hakkı ekleyebilir!");
public static CustomError E_211 = new(nameof(E_209), "Toplantı bulunmadı!");
public static CustomError E_212 = new(nameof(E_212), "Ankete minimum 2, maksimum 4 cevap girebilirsiniz!");
public static CustomError E_213 = new(nameof(E_209), "Bu email adresiyle daha önce katılımcı eklediniz!");
public static CustomError E_214 = new(nameof(E_209), "Cevaplanmış veya olmayan bir anketi silmeye çalışıyorsunuz!");
public static CustomError E_215 = new(nameof(E_209),
"Sadece png, jpg, jpeg veya mp4 formatında dosya yükleyebilirsiniz!");
public static CustomError E_216 = new(nameof(E_209), "Hatalı bir cevap gönderdiniz!");
}
public class CustomError
{
public CustomError(string errorCode, string errorMessage)
{
ErrorCode = errorCode;
ErrorMessage = errorMessage;
}
public string ErrorCode { get; set; }
public string ErrorMessage { get; set; }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment