---
title: "Diagnostics, a category in the TypeShade API reference"
description: "Diagnostics in the TypeShade API reference. The coded error class and the validation gate every emit goes through."
url: https://typeshade.dev/api/diagnostics/
language: en
---

# Diagnostics

5 members

The coded error class and the validation gate every emit goes through.

The signature, the description and the examples come from the compiler's own source at commit af54ddad5.

**[`Diagnostic`](https://typeshade.dev/api/diagnostic/) Interface**

One problem reported by a lint rule or by validation.

**[`ShaderDslError`](https://typeshade.dev/api/shaderdslerror/) Constant**

The former name of TypeShadeError, kept so code written against the design documents and the pre-0.1.0 sources keeps resolving.

**[`TypeShadeError`](https://typeshade.dev/api/typeshadeerror/) Class**

The error class this package throws.

**[`validate`](https://typeshade.dev/api/validate/) Function**

Check an authored module against the structural rules every emit depends on, and throw a ValidationError when any of them fails.

**[`ValidationError`](https://typeshade.dev/api/validationerror/) Class**

Thrown by validate when a module fails one of the structural rules every emit depends on.
