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.
SystemError is a full-screen error display for critical system failures.
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.
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."
/>
);
}
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)"
/>
);
}
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>
);
}
import { SystemError } from "@servicetitan/anvil2-ext-atlas";
function DefaultErrorScreen() {
// Uses default title "Something went wrong" and default description
return <SystemError />;
}
<SystemError
title="Something went wrong"
description="We're having trouble loading the chat."
icon={ErrorIcon}
iconColor="var(--a2-color-neutral-100)"
/>
SystemError Propsdescription. If provided, overrides the description.Was this page helpful?