|
VMware vSphere Automation SDK Perl
The VMware vSphere Automation SDK for Perl supports the client-side vSphere Automation API for access to vSphere services and capabilities
|
Avaliable Methods | |
| public method | set_data () |
| public method | set_messages () |
| public method | new () |
| public method | get_data () |
| public method | get_messages () |
The Com::Vmware::Vapi::Std::Errors::Error error describes the fields common to all standard errors .
This error serves two purposes:
Com::Vmware::Vapi::Std::Errors::Error.messages to a human. | public method Com::Vmware::Vapi::Std::Errors::Error::get_data | ( | ) |
Gets the value of 'data' property.
| data | - The current value of the field. Data to facilitate clients responding to the method reporting a standard error to indicating that it was unable to complete successfully. |
Methods* may provide data that clients can use when responding to errors . Since the data that clients need may be specific to the context of the method reporting the error , different methods that report the same error may provide different data in the error . The documentation for each each method will describe what, if any, data it provides for each error it reports. The class Com::Vmware::Vapi::Std::Errors::ArgumentLocations , class Com::Vmware::Vapi::Std::Errors::FileLocations , and class Com::Vmware::Vapi::Std::Errors::TransientIndication classes are intended as possible values for this field . class Com::Vmware::Vapi::Std::DynamicID may also be useful as a value for this field (although that is not its primary purpose). Some interfaces may provide their own specific classes for use as the value of this field when reporting errors from their methods .
Optional#
Code:
| public method Com::Vmware::Vapi::Std::Errors::Error::get_messages | ( | ) |
Gets the value of 'messages' property.
| messages | - The current value of the field. Stack of one or more localizable messages for human error consumers. |
The message at the top of the stack (first in the list) describes the error from the perspective of the method the client invoked. Each subsequent message in the stack describes the "cause" of the prior message.
List#
Code:
| public method Com::Vmware::Vapi::Std::Errors::Error::new | ( | ) |
Constructor to initialize the Com::Vmware::Vapi::Std::Errors::Error structure
| Blessed | object |
Code:
| public method Com::Vmware::Vapi::Std::Errors::Error::set_data | ( | ) |
Sets the given value for 'data' property.
| data | - New value for the field. Data to facilitate clients responding to the method reporting a standard error to indicating that it was unable to complete successfully. |
Methods* may provide data that clients can use when responding to errors . Since the data that clients need may be specific to the context of the method reporting the error , different methods that report the same error may provide different data in the error . The documentation for each each method will describe what, if any, data it provides for each error it reports. The class Com::Vmware::Vapi::Std::Errors::ArgumentLocations , class Com::Vmware::Vapi::Std::Errors::FileLocations , and class Com::Vmware::Vapi::Std::Errors::TransientIndication classes are intended as possible values for this field . class Com::Vmware::Vapi::Std::DynamicID may also be useful as a value for this field (although that is not its primary purpose). Some interfaces may provide their own specific classes for use as the value of this field when reporting errors from their methods .
Code:
| public method Com::Vmware::Vapi::Std::Errors::Error::set_messages | ( | ) |
Sets the given value for 'messages' property.
| messages | - New value for the field. Stack of one or more localizable messages for human error consumers. |
The message at the top of the stack (first in the list) describes the error from the perspective of the method the client invoked. Each subsequent message in the stack describes the "cause" of the prior message.
Code: