# Fault - MethodFault(vmodl.MethodFault)

Property of
  LocalizedMethodFault
Parameter to
  HttpNfcLeaseAbort, SetTaskState
Returned by
  QueryFaultToleranceCompatibility, QueryFaultToleranceCompatibilityEx
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:vim25="urn:vim25" name="MethodFault"> <sequence> <element name="faultCause" type="vim25:LocalizedMethodFault" minOccurs="0"/> <element name="faultMessage" type="vim25:LocalizableMessage" minOccurs="0" maxOccurs="unbounded"/> </sequence> </complexType>