0% found this document useful (0 votes)
2 views

Error MessageBackend

The document defines a static class 'MessageHelper' that contains various constant error messages and API error codes related to user authentication, file handling, and other operations. Each error message is associated with a specific error code and provides a brief description of the issue. The class is structured to facilitate error handling in an application by providing standardized messages for different scenarios.

Uploaded by

taxdomed
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
2 views

Error MessageBackend

The document defines a static class 'MessageHelper' that contains various constant error messages and API error codes related to user authentication, file handling, and other operations. Each error message is associated with a specific error code and provides a brief description of the issue. The class is structured to facilitate error handling in an application by providing standardized messages for different scenarios.

Uploaded by

taxdomed
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 6

public static class MessageHelper

{
public const string UsernamePasswordIncorrect = "The email address or password
is not correct.";
public const string AccountNotAccociateWithHLS = "Ad Account is not associated
with the HLS portal.";
public const string AccountInactive = "Your account is inactive.";
public const string AccountLockout = "Your account has been temporarily locked
due to too many failed login attempts. Please try again later.";
public const string UserExists = "User is already exists.";
public const string SaveError = "Error while saving record.";
public const string DeleteError = "Error while delete record.";
public const string SignInFailed = "Sign in failed with azure ad";
public const string EmailVerify = "Your email address is not verified.";
public const string AllUserNotVerified = "All user are not verified.";
public const string DeletedUser = "The email entered is not linked with any
account.";
//public const string Invalidlink = "Invalid link.";

public static ApiError SomethingWentWrong


{
get
{
return new ApiError { ErrorCode = "999", Error = "Something went
wrong.", ErrorDetail = "Something went wrong." };
}
}
public static ApiError Invalidlink
{
get
{
return new ApiError { ErrorCode = "1003", Error = "Invalid link.",
ErrorDetail = "Invalid link." };
}
}
public static ApiError LinkExpire
{
get
{
return new ApiError { ErrorCode = "1004", Error = "Link is Expired.",
ErrorDetail = "Link is Expired." };
}
}

public static ApiError InvalidCode


{
get
{
return new ApiError { ErrorCode = "1002", Error = "Invalid otp.",
ErrorDetail = "Invalid otp." };
}
}
public static ApiError CodeExpire
{
get
{
return new ApiError { ErrorCode = "1001", Error = "Otp expire.",
ErrorDetail = "Otp expire." };
}
}
public static ApiError OTP_MAX_LIMIT_REACHED
{
get
{
return new ApiError { ErrorCode = "12314", Error = "The maximum number
of OTP attempts (3) has been reached. Please try again later.", ErrorDetail = "The
maximum number of OTP attempts (3) has been reached. Please try again later." };
}
}
public static ApiError WorkpaperFileNotFound
{
get
{
return new ApiError { ErrorCode = "4040", Error = "Workpaper file not
found.", ErrorDetail = "Workpaper file not found." };
}
}
public static ApiError CheckListProfile
{
get
{
return new ApiError { ErrorCode = "1005", Error = "Profile
incomplete.", ErrorDetail = "Profile incomplete." };
}
}

public static ApiError UserInfoErrorMessage


{
get
{
return new ApiError { ErrorCode = "10555", Error = "The user was not
part of the company in the previous year. Hence, you will not be able to view the
user's details.", ErrorDetail = "The user was not part of the company in the
previous year. Hence, you will not be able to view the user's details." };
}
}
public static ApiError UnCannotEditSubmitChecklist
{
get
{
return new ApiError { ErrorCode = "1006", Error = "You cannot edit
submitted checklist.", ErrorDetail = "You cannot edit submitted checklist." };
}
}
public static ApiError FileUploadFailed
{
get
{
return new ApiError { ErrorCode = "1007", Error = "File upload
failed.", ErrorDetail = "File upload failed." };
}
}
public static ApiError GetFileFailed
{
get
{
return new ApiError { ErrorCode = "1008", Error = "Error while getting
file.", ErrorDetail = "Error while getting file." };
}
}
public static ApiError FileMergeFailed
{
get
{
return new ApiError { ErrorCode = "1888", Error = "Error while merging
PDF files.", ErrorDetail = "Error while merging PDF files." };
}
}
public static ApiError RemoveFileFailed
{
get
{
return new ApiError { ErrorCode = "1010", Error = "File remove
failed.", ErrorDetail = "File remove failed." };
}
}
public static ApiError NoDataFound
{
get
{
return new ApiError { ErrorCode = "121", Error = "No data found.",
ErrorDetail = "No data found." };
}
}
public static ApiError ELNotFound
{
get
{
return new ApiError { ErrorCode = "11124", Error = "EL not found.
Please generate the EL first.", ErrorDetail = "EL not found. Please generate the EL
first." };
}
}
public static ApiError HLSSignerMissing
{
get
{
return new ApiError { ErrorCode = "11221", Error = "Please set the HLS
Signer before generating engagement letters, as it is mandatory.", ErrorDetail =
"Please set the HLS Signer before generating engagement letters, as it is
mandatory." };
}
}
public static ApiError CompanyClientSignerMissing
{
get
{
return new ApiError { ErrorCode = "11222", Error = "Please set the
Client Signer in the introduction section before sending the engagement letter, as
it is mandatory.", ErrorDetail = "Please set the Client Signer in the introduction
section before sending the engagement letter, as it is mandatory." };
}
}
public static ApiError DocusignELSendError
{
get
{
return new ApiError { ErrorCode = "11223", Error = "Sending engagement
letters failed using Docusign. Please try again later.", ErrorDetail = "Sending
engagement letters failed using Docusign. Please try again later." };
}
}

#region DMS Error Messages


public static ApiError FolderCreationError
{
get
{
return new ApiError { ErrorCode = "181", Error = "Error while creating
folder.", ErrorDetail = "Error while creating folder." };
}
}
public static ApiError RenameError
{
get
{
return new ApiError { ErrorCode = "182", Error = "Error while
renaming.", ErrorDetail = "Error while renaming." };
}
}
public static ApiError DeleteFileError
{
get
{
return new ApiError { ErrorCode = "183", Error = "Error while
deleting.", ErrorDetail = "Error while deleting." };
}
}
public static ApiError RestoreFileError
{
get
{
return new ApiError { ErrorCode = "184", Error = "Error while
restoring.", ErrorDetail = "Error while restoring." };
}
}
public static ApiError MoveFileError
{
get
{
return new ApiError { ErrorCode = "185", Error = "Error while moving
file.", ErrorDetail = "Error while moving file." };
}
}
public static ApiError ManageTagError
{
get
{
return new ApiError { ErrorCode = "186", Error = "Error while adding
tags.", ErrorDetail = "Error while adding tags." };
}
}
public static ApiError AccessDenied
{
get
{
return new ApiError { ErrorCode = "201", Error = "Access denied.",
ErrorDetail = "Access denied." };
}
}

public static ApiError AddTicketError


{
get
{
return new ApiError { ErrorCode = "200", Error = "Only client user can
create ticket.", ErrorDetail = "Only client user can create ticket." };
}
}
public static ApiError CopyFileFolderError
{
get
{
return new ApiError { ErrorCode = "185", Error = "Error while copying
file(s)/folder.", ErrorDetail = "Error while copying file(s)/folder." };
}
}
public static ApiError InvoiceServiceUpsertError
{
get
{
return new ApiError { ErrorCode = "983", Error = "Error while operating
Invoice Service.", ErrorDetail = "Error while operating Invoice Service." };
}
}
public static ApiError InvoiceServiceSameNameExist
{
get
{
return new ApiError { ErrorCode = "984", Error = "Same name service
already exist.", ErrorDetail = "Same name service already exist." };
}
}
public static ApiError InvoiceCreateError
{
get
{
return new ApiError { ErrorCode = "400", Error = "Error while operating
Invoice data.", ErrorDetail = "Error while operating Invoice data." };
}
}

public static ApiError UserWorkflowMessage


{
get
{
return new ApiError { ErrorCode = "478", Error = "Please fill up the
user workflow header detail.", ErrorDetail = "Please fill up the user workflow
header detail." };
}
}

public static ApiError FilingInstructionError


{
get
{
return new ApiError { ErrorCode = "400", Error = "Filing instructions
generation failed please try again.", ErrorDetail = "Filing instructions generation
failed please try again." };
}
}
public static ApiError NameExist(string text)
{
return new ApiError
{
ErrorCode = "187",
Error = string.Format("{0} name already exist.", text),
ErrorDetail = string.Format("{0} name already exist.", text)
};
}
#endregion

#region FAQ Error Messages


public static ApiError AddFaqError
{
get
{
return new ApiError { ErrorCode = "200", Error = "Error while saving",
ErrorDetail = "Error while saving" };
}
}

public static ApiError DeleteFaqError


{
get
{
return new ApiError { ErrorCode = "200", Error = "Error while
deleting", ErrorDetail = "Error while deleting" };
}
}
public static ApiError UpdateFaqError
{
get
{
return new ApiError { ErrorCode = "200", Error = "Error while update
status", ErrorDetail = "Error while update status" };
}
}

public static ApiError WorkFlowGSInputValidationError


{
get
{
return new ApiError { ErrorCode = "200", Error = "The header
information cannot be blank or zero. Please provide valid header information.",
ErrorDetail = "The header information cannot be blank or zero. Please provide valid
header information." };
}
}

You might also like