# PDFViewerMessagesErrorMessagesSettingsBuilder

## Methods

### NotSupported(System.String)

Specifies the error message displayed when a user attempts to open a file that is not a PDF format. This validation occurs during file selection or upload.

#### Parameters

##### value - `System.String`

The value for NotSupported

#### RETURNS

Returns the current [PDFViewerMessagesErrorMessagesSettingsBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/pdfviewermessageserrormessagessettingsbuilder) instance.

#### Example

```
 
            @(Html.Kendo().PDFViewer()
               .Name("pdfviewer")
                .Messages(messages => messages
                    .ErrorMessages(errmsg => errmsg.NotSupported("Only pdf files allowed."))
                )
             )
             
```

### ParseError(System.String)

Specifies the error message displayed when the PDF processing library fails to parse or render the PDF file due to corruption, unsupported features, or internal errors.

#### Parameters

##### value - `System.String`

The value for ParseError

#### RETURNS

Returns the current [PDFViewerMessagesErrorMessagesSettingsBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/pdfviewermessageserrormessagessettingsbuilder) instance.

#### Example

```
 
            @(Html.Kendo().PDFViewer()
               .Name("pdfviewer")
                .Messages(messages => messages
                    .ErrorMessages(errmsg => errmsg.ParseError("PDF file fails to process."))
                )
             )
             
```

### NotFound(System.String)

Specifies the error message displayed when the specified PDF file URL returns a 404 error or the file cannot be located at the provided path.

#### Parameters

##### value - `System.String`

The value for NotFound

#### RETURNS

Returns the current [PDFViewerMessagesErrorMessagesSettingsBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/pdfviewermessageserrormessagessettingsbuilder) instance.

#### Example

```
 
            @(Html.Kendo().PDFViewer()
               .Name("pdfviewer")
                .Messages(messages => messages
                    .ErrorMessages(errmsg => errmsg.NotFound("File is not found."))
                )
             )
             
```

### PopupBlocked(System.String)

Specifies the error message displayed when browser popup blockers prevent the PDF viewer from opening new windows for print or download operations.

#### Parameters

##### value - `System.String`

The value for PopupBlocked

#### RETURNS

Returns the current [PDFViewerMessagesErrorMessagesSettingsBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/pdfviewermessageserrormessagessettingsbuilder) instance.

#### Example

```
 
            @(Html.Kendo().PDFViewer()
               .Name("pdfviewer")
                .Messages(messages => messages
                    .ErrorMessages(errmsg => errmsg.PopupBlocked("Popup is blocked."))
                )
             )
             
```
