class_docstr: An error from vips.
  
  Attributes:
      message (str): a high-level description of the error
      detail (str): a string with some detailed diagnostics
code: def __init__(self, message, detail=None):
      self.message = message
      if detail is None or detail == "":
          detail = _to_string(vips_lib.vips_error_buffer())
          vips_lib.vips_error_clear()
      self.detail = detail
  
      logger.debug("Error %s %s", self.message, self.detail)
  
file_path: pyvips/pyvips/error.py
imports: import sys
  import logging
  from pyvips import ffi, vips_lib, glib_lib
label_desc: Use image node_id 1 to create a new Error object from inherited base classes: Exception with example: obj = Error(message, detail)