---
title: "ValidationError | JavaScript maps SDK"
description: "Documentation for MapTiler SDK"
---

> For AI agents: a documentation index is available at [/llms.txt](https://docs.maptiler.com/llms.txt). Markdown versions of all pages are available by appending .md to any URL.

# Class ValidationError

##### Index

### Constructors[](#constructors)

[constructor](#constructor)

### Properties[](#properties)

[identifier](#identifier) [line](#line) [message](#message)

## Constructors[](#constructors-1)

### constructor[](#constructor)

-   new ValidationError(  
        key: string,  
        value: any,  
        message: string,  
        identifier?: string | null,  
    ): ValidationError[](#constructorvalidationerror)
    
    #### Parameters
    
    -   key: string
    -   value: any
    -   message: string
    -   `Optional`identifier: string | null
    
    #### Returns ValidationError
    

## Properties[](#properties-1)

### identifier[](#identifier)

identifier: string

### line[](#line)

line: number

### message[](#message)

message: string
