# Fault - MethodFault(vmodl.MethodFault)

Property of
  LocalizedMethodFault
Parameter to
  HttpNfcLeaseAbort, SetTaskState
Returned by
  QueryFaultToleranceCompatibility, QueryFaultToleranceCompatibilityEx, ValidateStoragePodConfig
Extended by
  InvalidCollectorVersion, InvalidProperty, RuntimeFault, VimFault
See also
  LocalizableMessage, LocalizedMethodFault

## Fault Description

The base data object type for all the object model faults that an application might handle.

Properties

Name | Type | Description
--- | --- | ---
faultCause* | LocalizedMethodFault | Fault which is the cause of this fault. Since vSphere API 4.0
faultMessage* | LocalizableMessage[] | Message which has details about the error Message can also contain a key to message catalog which can be used to generate better localized messages. Since vSphere API 4.0

*May not be present
Show WSDL type definition
<complexType xmlns="http://www.w3.org/2001/XMLSchema" xmlns:vsan="urn:vsan" name="MethodFault"> <sequence> <element name="faultCause" type="vsan:LocalizedMethodFault" minOccurs="0"/> <element name="faultMessage" type="vsan:LocalizableMessage" minOccurs="0" maxOccurs="unbounded"/> </sequence> </complexType>