---
title: "WS Exception"
id: "ws-exception"
project: "MES User Manual"
url: "https://docs.sepasoft.com/articles/user-manual/ws-exception"
updated: 2026-12-01T00:46:34Z
---

# WS Exception

The WSException object is returned from a web service call to handle errors and other exceptional events.

## Object Functions

getMessage()
Description

Returns a message with details about this web service exception.
 
Syntax

**getMessage()**

* Parameters

None

* Returns

[String](/articles/user-manual/Data-Types-and-Formats) message - A message about the exception that occured.

* Scope

All

getVariable()
Description
 
Gets the web service variable associated with this exception.

Syntax

**getVariable()**

* Parameters

None

* Returns

[WSVariable](/articles/user-manual/WS-Variable) variable - The WSVariable object is returned from this web service.

* Scope

All

 © Sepasoft. All rights reserved. 
 [Send feedback](mailto:support@clickhelp.com) on this topic to Sepasoft.