## Description This PR updates the error logs - Establishing a consistent format for all error messages. - Revising error titles and details for improved understanding. - Compiling internal documentation of all error categories, subcategories, and error descriptions. Updated Error Interface: https://www.notion.so/appsmith/Error-Interface-for-Plugin-Execution-Error-7b3f5323ba4c40bfad281ae717ccf79b PRD: https://www.notion.so/appsmith/PRD-Error-Handling-Framework-4ac9747057fd4105a9d52cb8b42f4452?pvs=4#008e9c79ff3c484abf0250a5416cf052 >TL;DR Fixes # Media > A video or a GIF is preferred. when using Loom, don’t embed because it looks like it’s a GIF. instead, just link to the video ## Type of change - New feature (non-breaking change which adds functionality) ## How Has This Been Tested? - Manual - Jest - Cypress ### Test Plan ### Issues raised during DP testing ## Checklist: ### Dev activity - [x] My code follows the style guidelines of this project - [x] I have performed a self-review of my own code - [x] I have commented my code, particularly in hard-to-understand areas - [ ] I have made corresponding changes to the documentation - [x] My changes generate no new warnings - [x] I have added tests that prove my fix is effective or that my feature works - [x] New and existing unit tests pass locally with my changes - [x] PR is being merged under a feature flag ### QA activity: - [ ] Test plan has been approved by relevant developers - [ ] Test plan has been peer reviewed by QA - [ ] Cypress test cases have been added and approved by either SDET or manual QA - [ ] Organized project review call with relevant stakeholders after Round 1/2 of QA - [ ] Added Test Plan Approved label after reveiwing all Cypress test --------- Co-authored-by: subrata <subrata@appsmith.com>
28 lines
1.0 KiB
TypeScript
28 lines
1.0 KiB
TypeScript
export type APIResponseError = {
|
|
code: string | number;
|
|
message: string;
|
|
};
|
|
|
|
export type ResponseMeta = {
|
|
status: number;
|
|
success: boolean;
|
|
error?: APIResponseError;
|
|
};
|
|
|
|
export type ApiResponse<T = unknown> = {
|
|
responseMeta: ResponseMeta;
|
|
data: T;
|
|
code?: string;
|
|
};
|
|
|
|
// NO_DATASOURCES_FOUND, 1000, "Unable to find {0} with id {1}"
|
|
// INVALID_PARAMTER, 4000, "Invalid parameter {0} provided in the input"
|
|
// PLUGIN_NOT_INSTALLED, 4001, "Plugin {0} not installed"
|
|
// MISSING_PLUGIN_ID, 4002, "Missing plugin id. Please input correct plugin id"
|
|
// MISSING_DATASOURCES_ID, 4003, "Missing datasource id. Please input correct datasource id"
|
|
// MISSING_PAGE_ID, 4004, "Missing page id. Pleaes input correct page id"
|
|
// PAGE_DOES_NOT_EXIST_IN_WORKSPACE, 4006, "Page {0} does not belong to the current user {1} workspace."
|
|
// UNAUTHORIZED_DOMAIN, 4001, "Invalid email domain provided. Please sign in with a valid work email ID"
|
|
// INTERNAL_SERVER_ERROR, 5000, "Internal server error while processing request"
|
|
// REPOSITORY_SAVE_FAILED, 5001, "Repository save failed."
|