GOffice.ErrorInfo

Fields

None

Methods

class new_from_errno ()
class new_from_error_list (errors)
class new_str (msg)
class new_str_with_details (msg, details)
class new_str_with_details_list (msg, details)
  add_details (details)
  add_details_list (details)
  free ()
  peek_details ()
  peek_message ()
  peek_severity ()
  print_ ()

Details

class GOffice.ErrorInfo
classmethod new_from_errno()
Return type:GOffice.ErrorInfo
classmethod new_from_error_list(errors)
Parameters:errors ([GOffice.ErrorInfo]) – a list of GOffice.ErrorInfo to add
Returns:the newly created GOffice.ErrorInfo
Return type:GOffice.ErrorInfo

Creates a new GOffice.ErrorInfo from a list of existing GOffice.ErrorInfo instances to add to the message.

classmethod new_str(msg)
Parameters:msg (str) –
Return type:GOffice.ErrorInfo
classmethod new_str_with_details(msg, details)
Parameters:
Returns:

the newly created GOffice.ErrorInfo

Return type:

GOffice.ErrorInfo

Creates a new GOffice.ErrorInfo from message and an existing GOffice.ErrorInfo instance to add to the message.

classmethod new_str_with_details_list(msg, details)
Parameters:
Returns:

the newly created GOffice.ErrorInfo

Return type:

GOffice.ErrorInfo

Creates a new GOffice.ErrorInfo from message and a list of existing GOffice.ErrorInfo instances to add to the message.

add_details(details)
Parameters:details (GOffice.ErrorInfo) – GOffice.ErrorInfo to add

Adds an existing GOffice.ErrorInfo instance to self.

add_details_list(details)
Parameters:details ([GOffice.ErrorInfo]) – a list of GOffice.ErrorInfo to add

Adds a list of existing GOffice.ErrorInfo instances to self.

free()
peek_details()
Returns:the newly details in self
Return type:[GOffice.ErrorInfo]
peek_message()
Return type:str
peek_severity()
Return type:GOffice.Severity
print_()