> ## Documentation Index
> Fetch the complete documentation index at: https://anvil.servicetitan.com/llms.txt
> Use this file to discover all available pages before exploring further.

# System Error – Code

> SystemError is a full-screen error display for critical system failures.

> [!WARNING]
>
> Atlas is deprecated. Use [AI Kit](https://anvil.servicetitan.com/docs/building-agentic-experiences) for any new Atlas experiences.

> [tab] Implementation
>
> ext-atlas-system-error-demo
>
> [StackBlitz demo](https://stackblitz.com/github/servicetitan/anvil2-docs-live-code/tree/main/examples/ext-atlas-system-error-demo?file=src/App.tsx)
>
> ```tsx lines expandable theme={null}
> import { SystemError } from "@servicetitan/anvil2-ext-atlas";
> import { Card, Flex, Text } from "@servicetitan/anvil2";
>
> function App() {
>   return (
>     <Flex direction="column" gap={4} style={{ width: "388px" }}>
>       <Card style={{ height: "200px" }} background="strong">
>         <Text size="medium" variant="eyebrow">
>           Default Error
>         </Text>
>         <SystemError />
>       </Card>
>
>       <Card style={{ height: "200px" }} background="strong">
>         <Text size="medium" variant="eyebrow">
>           Custom Error
>         </Text>
>         <SystemError
>           title="Connection Failed"
>           description="Unable to connect to the server. Please check your internet connection."
>           iconColor="var(--foreground-color-danger)"
>         />
>       </Card>
>     </Flex>
>   );
> }
>
> export default App;
> ```
>
> ## Common Examples
>
> ### Basic Usage
>
> Display a system error state:
>
> ```tsx theme={null}
> import { SystemError } from "@servicetitan/anvil2-ext-atlas";
>
> function ErrorScreen() {
>   return (
>     <SystemError
>       title="Unable to Load Chat"
>       description="We're having trouble connecting to the server. Please check your connection and try again."
>     />
>   );
> }
> ```
>
> ### Custom Error Icon
>
> Use a custom icon for the error state:
>
> ```tsx theme={null}
> import { SystemError } from "@servicetitan/anvil2-ext-atlas";
> import CloudOffIcon from "@servicetitan/anvil2/assets/icons/material/round/cloud_off.svg";
>
> function OfflineError() {
>   return (
>     <SystemError
>       title="You're Offline"
>       description="Atlas requires an internet connection to work."
>       icon={CloudOffIcon}
>       iconColor="var(--a2-color-yellow-500)"
>     />
>   );
> }
> ```
>
> ### Conditional Error Display
>
> Show error based on application state:
>
> ```tsx theme={null}
> import { SystemError, ChatWindow, Content } from "@servicetitan/anvil2-ext-atlas";
>
> function AtlasApp() {
>   const [error, setError] = useState<string | null>(null);
>
>   if (error) {
>     return (
>       <SystemError
>         title="Something went wrong"
>         description={error}
>       />
>     );
>   }
>
>   return (
>     <ChatWindow open>
>       <Content>{/* messages */}</Content>
>     </ChatWindow>
>   );
> }
> ```
>
> ### Default Values
>
> Using default title and description:
>
> ```tsx theme={null}
> import { SystemError } from "@servicetitan/anvil2-ext-atlas";
>
> function DefaultErrorScreen() {
>   // Uses default title "Something went wrong" and default description
>   return <SystemError />;
> }
> ```

> [tab] SystemError API
>
> ```tsx theme={null}
> <SystemError
>   title="Something went wrong"
>   description="We're having trouble loading the chat."
>   icon={ErrorIcon}
>   iconColor="var(--a2-color-neutral-100)"
> />
> ```
>
> ## `SystemError` Props
>
> **description** `string` (default: We're having trouble loading the chat. Please try refreshing the page.)
>
> Detailed description of the error or suggested actions.
>
> **icon** `Svg` (default: IconError)
>
> Custom SVG icon to display. Defaults to the Material error icon.
>
> **iconColor** `string` (default: var(--a2-color-neutral-100))
>
> Color for the icon.
>
> **text** `string`
>
> Alternative to `description`. If provided, overrides the description.
>
> **title** `string` (default: Something went wrong)
>
> The error title heading.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.