UserError Class — react Architecture
Architecture documentation for the UserError class in UserError.js from the react codebase.
Entity Profile
Dependency Diagram
graph TD defc6f21_3ed8_b36c_cb2a_64238f8addea["UserError"] 1bf927d7_5daf_2cd4_9f61_e4883542e3fe["UserError.js"] defc6f21_3ed8_b36c_cb2a_64238f8addea -->|defined in| 1bf927d7_5daf_2cd4_9f61_e4883542e3fe c9d8544f_aacb_7928_f176_dc6e78792712["constructor()"] defc6f21_3ed8_b36c_cb2a_64238f8addea -->|method| c9d8544f_aacb_7928_f176_dc6e78792712
Relationship Graph
Source Code
packages/react-devtools-shared/src/errors/UserError.js lines 10–21
export default class UserError extends Error {
constructor(message: string) {
super(message);
// Maintains proper stack trace for where our error was thrown (only available on V8)
if (Error.captureStackTrace) {
Error.captureStackTrace(this, UserError);
}
this.name = 'UserError';
}
}
Source
Frequently Asked Questions
What is the UserError class?
UserError is a class in the react codebase, defined in packages/react-devtools-shared/src/errors/UserError.js.
Where is UserError defined?
UserError is defined in packages/react-devtools-shared/src/errors/UserError.js at line 10.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free