σ
Xυτdc           @` sW  d  Z  d d l m Z m Z m Z m Z d d l Z d e _ e j	 j
 e j	 j
 e j   e _ e j	 j e j e j  e _ e j	 j e j d  e _ e j j d e j  d e _ d   e _ d e _ d	 e _ d
 e _ d e _ d e _ e j d e _ e j	 j e j d d d  e _ d e _ d e _ d e _ d g e _ e e _  d S(   uS   Plug-in configuration.

Use `c` to access, create or modify configuration entries.
i    (   t   absolute_importt   divisiont   print_functiont   unicode_literalsNu   export_layersu   localeu
   exceptionsc           C` s
   t  d  S(   Nu   Export Layers(   t   _(    (    (    s>   /home/josie/.config/GIMP/2.10/plug-ins/export_layers/config.pyt   <lambda>   t    u   4.0.2u   September 03, 2023u   Kamil Burdau	   2013-2023u/   https://kamilburda.github.io/gimp-export-layersu	   /sectionsu   docsu   sectionsu
   index.htmlu
   kamilburdau   gimp-export-layersu0   https://github.com/kamilburda/gimp-export-layersu   GitHubu7   https://github.com/kamilburda/gimp-export-layers/issues(   u   GitHubu7   https://github.com/kamilburda/gimp-export-layers/issues(!   t   __doc__t
   __future__R    R   R   R   t   ost   ct   PLUGIN_NAMEt   patht   dirnamet   PYGIMPLIB_DIRPATHt   PLUGINS_DIRPATHt   joint   PLUGIN_SUBDIRPATHt   LOCALE_DIRPATHt   PLUGINS_LOG_DIRPATHSt   insertt   LOG_MODEt   PLUGIN_TITLEt   PLUGIN_VERSIONt   PLUGIN_VERSION_RELEASE_DATEt   AUTHOR_NAMEt   COPYRIGHT_YEARSt   PAGE_URLt   DOCS_URLt   LOCAL_DOCS_PATHt   REPOSITORY_USERNAMEt   REPOSITORY_NAMEt   REPOSITORY_URLt   BUG_REPORT_URL_LISTt   Falset   DEBUG_IMAGE_PROCESSING(    (    (    s>   /home/josie/.config/GIMP/2.10/plug-ins/export_layers/config.pyt   <module>   s*   "	$						!			                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        # -*- coding: utf-8 -*-

"""Custom exception classes related to batch processing or export."""

from __future__ import absolute_import, division, print_function, unicode_literals
from future.builtins import *
import future.utils


class BatcherError(Exception):
  pass


class BatcherCancelError(BatcherError):
  pass


class ActionError(BatcherError):
  
  def __init__(self, message, action, item, traceback):
    super().__init__(message)
    
    self.message = message
    self.action = action
    self.item = item
    self.traceback = traceback


class SkipAction(BatcherError):
  pass


@future.utils.python_2_unicode_compatible
class ExportError(BatcherError):
  
  def __init__(self, message='', item_name=None, file_extension=None):
    super().__init__()
    
    self._message = message
    self.item_name = item_name
    self.file_extension = file_extension
  
  def __str__(self):
    str_ = self._message
    
    if self.item_name:
      str_ += '\n' + _('Layer:') + ' ' + self.item_name
    if self.file_extension:
      str_ += '\n' + _('File extension:') + ' ' + self.file_extension
    
    return str_


class InvalidOutputDirectoryError(ExportError):
  pass
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             