| Server IP : 35.236.43.222 / Your IP : 216.73.216.143 Web Server : Apache System : Linux order-form-vm-001 5.10.0-37-cloud-amd64 #1 SMP Debian 5.10.247-1 (2025-12-11) x86_64 User : deploy ( 1002) PHP Version : 8.1.31 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /usr/lib/google-cloud-sdk/lib/googlecloudsdk/calliope/__pycache__/ |
Upload File : |
�
���[ �
� � d Z ddlmZ ddlmZ ddlmZ ddlZddlmZ ddlZddl Z ddl
mZ ddl
mZ ddl
mZ dd l
mZ dd
lmZ ddlmZ ddlmZ ddlZd� Z G d
� dej � � Z G d� dej � � Z G d� dej � � Zd� ZdLd�ZdZd� Zd� Z G d� de� � Z! G d� de� � Z" G d� dej# � � Z# G d� d e� � Z$ G d!� d"e� � Z% G d#� d$e� � Z& G d%� d&e� � Z' G d'� d(e� � Z( G d)� d*e� � Z) G d+� d,e� � Z*i d-ej+ �d.e#�d/ej+ �d0ej+ �d1ej+ �d2ej, �d3d4� �d5d6� �d7ej+ �d8ej+ �d9ej+ �d:ej+ �d;ej+ �d<ej+ �d=ej, �d>ej+ �d?ej+ �ej+ ej+ ej+ ej+ ej+ ej+ ej+ ej+ d@��Z-dA� Z.h dB�Z/dC� Z0dD� Z1dMdE�Z2 G dF� dGe3� � Z4dH� Z5dI� Z6dJ� Z7dK� Z8dS )Na& Exceptions that can be thrown by calliope tools.
The exceptions in this file, and those that extend them, can be thrown by
the Run() function in calliope tools without worrying about stack traces
littering the screen in CLI mode. In interpreter mode, they are not caught
from within calliope.
� )�absolute_import)�division)�unicode_literalsN��wraps)�
exceptions)�log)�
properties)�console_attr)�console_attr_osc �� � t j � � \ }}}|r6t j }|� d� � |� |� � |r | |� S |r
| |j � S | d� � S )aV Creates a new error based on the current exception being handled.
If no exception is being handled, a new error with the given args
is created. If there is a current exception, the original exception is
first logged (to file only). A new error is then created with the
same args as the current one.
Args:
error: The new error to create.
*args: The standard args taken by the constructor of Exception for the new
exception that is created. If None, the args from the exception
currently being handled will be used.
Returns:
The generated error exception.
zAHandling the source of a tool exception, original details follow.zAn unknown error has occurred)�sys�exc_infor �file_only_logger�error� exception�args)r r �_�current_exception�file_loggers �)lib/googlecloudsdk/calliope/exceptions.py�NewErrorFromCurrentExceptionr , s� � �"