getter for list of errors that occured

@return WirecardCEE_QPay_Error
557467
public function getError()
    {
        $oError = false;

        if (isset( $this->_response[self::$ERROR_MESSAGE] )) {
            $oError = new WirecardCEE_QPay_Error($this->_response[self::$ERROR_MESSAGE]);

            if (isset( $this->_response[self::$ERROR_CONSUMER_MESSAGE] )) {
                $oError->setConsumerMessage($this->_response[self::$ERROR_CONSUMER_MESSAGE]);
            }
        }

        return $oError;
    }
384320
public function getAllErrors() {

        $errors = array();
        // First the table itself
        if ($this->getError()) {
            $errors[] = $this->getError();
        }
        // Delegate to fields
        if ($fields = $this->getFields()) {
            foreach ($fields as $field) {
                if ($field->getError()) {
                    $errors[] = $field->getError();
                }
            }
        }
        // Delegate to keys
        if ($keys = $this->getKeys()) {
            foreach ($keys as $key) {
                if ($key->getError()) {
                    $errors[] = $key->getError();
                }
            }
        }
        // Delegate to indexes
        if ($indexes = $this->getIndexes()) {
            foreach ($indexes as $index) {
                if ($index->getError()) {
                    $errors[] = $index->getError();
                }
            }
        }
        // Return decision
        if (count($errors)) {
            return $errors;
        } else {
            return false;
        }
    }
903266
protected function GetErrorCodesFromResponse()
    {
        $sReturnMessage = false;
        $oGlobal = TGlobal::instance();
        $this->sRefNo = $oGlobal->GetUserData('refno');
        $sReturnState = $oGlobal->GetUserData('status');
        if ($this->bIsCorrectPaymentType()) {
            $oBasket = TShopBasket::GetInstance();
            if ($this->sRefNo == crc32($oBasket->sBasketIdentifier.'__'.$this->GetRefNoPaymentId().'__'.$this->sRefNoCount)) {
                if ('error' == $sReturnState) {
                    $sResponseHash = $this->GetSecurityHash($this->GetTestLiveModeParameter('sign'), $oGlobal->GetUserData('merchantId'), $oGlobal->GetUserData('amount'), $oGlobal->GetUserData('currency'), $oGlobal->GetUserData('refno'));
                    if ($sResponseHash == $oGlobal->GetUserData('sign')) {
                        $sReturnMessage = $oGlobal->GetUserData('errorDetail');
                        $sReturnMessage = $this->TransformDataTransMessages($oGlobal->GetUserData('errorCode'));
                    } else {
                        $sReturnMessage = 'ERROR_PAYMENT_DATA_TRANS_SECURITY_CHECK_ERROR';
                    }
                } elseif ('cancel' == $sReturnState) {
                    $sResponseHash = $this->GetSecurityHash($this->GetTestLiveModeParameter('sign'), $oGlobal->GetUserData('merchantId'), $oGlobal->GetUserData('amount'), $oGlobal->GetUserData('currency'), $oGlobal->GetUserData('refno'));
                    if ($sResponseHash == $oGlobal->GetUserData('sign')) {
                        $sReturnMessage = 'ERROR_PAYMENT_DATA_TRANS_PAYMENT_CANCEL';
                    } else {
                        $sReturnMessage = 'ERROR_PAYMENT_DATA_TRANS_SECURITY_CHECK_ERROR';
                    }
                } else {
                    $sTransactionId = $oGlobal->GetUserData('uppTransactionId');
                    $sAuthorisedAmount = $oGlobal->GetUserData('amount');
                    $sResponseHash = $this->GetSecurityHash($this->GetTestLiveModeParameter('sign2'), $oGlobal->GetUserData('merchantId'), $oGlobal->GetUserData('amount'), $oGlobal->GetUserData('currency'), $oGlobal->GetUserData('uppTransactionId'));
                    if ($sResponseHash == $oGlobal->GetUserData('sign2')) {
                        if (strlen($sTransactionId) <= 0 || strlen($sAuthorisedAmount) <= 0) {
                            $sReturnMessage = 'ERROR_PAYMENT_DATA_TRANS_MISSING_PARAMETER_IN_RESPONSE';
                            TTools::WriteLogEntrySimple('Payment DataTrans: Beim Autorisierungsresponse wurden benötigte Daten nicht zurückgegeben', 1, __FILE__, __LINE__);
                        } else {
                            $this->sTransactionId = $sTransactionId;
                            $this->sAuthorisedAmount = $sAuthorisedAmount;
                        }
                    } else {
                        $sReturnMessage = 'ERROR_PAYMENT_DATA_TRANS_SECURITY_CHECK_ERROR';
                    }
                }
            } else {
                $sReturnMessage = 'ERROR_PAYMENT_DATA_TRANS_REFERENCE_NUMER_NOT_VALID';
            }
        } else {
            $sReturnMessage = 'ERROR_PAYMENT_DATA_TRANS_PAYMEN_SELECTION_NOT_VALID';
        }

        return $sReturnMessage;
    }
445749
public function getError(): ?array {
		$errorCode = $this->dbConn->errorCode();
		return !is_null($errorCode) ? [$errorCode => $this->dbConn->errorInfo()] : null;
	}
11025
function get_error()
    {
        $err = $this->error;

        // check ldap connection for errors
        if (!$err && $this->ldap->get_error()) {
            $err = array(self::ERROR_SEARCH, $this->ldap->get_error());
        }

        return $err;
    }
890577
public function errorMessages()
    {
        $msgs = array();
        foreach ($this->errors as $key => $values) {
            foreach ($values as $value) {
                array_push($msgs, "$key $value");
            }
        }
        return $msgs;
    }
1261060
protected function getError() {
		if ($this->_error === false) {
			if (is_resource($this->_dbh)) {
				$this->_error = @oci_error($this->_dbh);
			}
			else {
				$this->_error = @oci_error();
			}
		}

		return $this->_error;
	}
151390
public function any_error_messages() {
        $errors = array();
        foreach ($this->get_all_slots() as $slot) {
            foreach ($this->for_slot($slot)->get_sub_question_ids() as $subqid) {
                if ($this->for_subq($subqid)->differentweights) {
                    $name = $this->for_subq($subqid)->question->name;
                    $errors[] = get_string('erroritemappearsmorethanoncewithdifferentweight', 'question', $name);
                }
            }
        }
        return $errors;
    }
435387
public function get_coords_interpreter_error() {
        if ($this->error) {
            $a = new stdClass();
            $a->shape = self::human_readable_name(true);
            $a->coordsstring = self::human_readable_coords_format();
            return get_string('formerror_'.$this->error, 'qtype_ddmarker', $a);
        } else {
            return false;
        }
    }
38654
public function getErrorCodes()
    {
        $errors = array();

        if (count($this->errorCodes) > 0)
        {
            foreach ($this->errorCodes as $error)
            {
                switch ($error)
                {
                    case 'timeout-or-duplicate':
                        $errors[] = array(
                            'code' => $error,
                            'name' => 'Timeout or duplicate.',
                        );
                    break;

                    case 'missing-input-secret':
                        $errors[] = array(
                            'code' => $error,
                            'name' => 'The secret parameter is missing.',
                        );
                    break;

                    case 'invalid-input-secret':
                        $errors[] = array(
                            'code' => $error,
                            'name' => 'The secret parameter is invalid or malformed.',
                        );
                    break;

                    case 'missing-input-response':
                        $errors[] = array(
                            'code' => $error,
                            'name' => 'The response parameter is missing.',
                        );
                    break;

                    case 'invalid-input-response':
                        $errors[] = array(
                            'code' => $error,
                            'name' => 'The response parameter is invalid or malformed.',
                        );
                    break;

                    case 'bad-request':
                        $errors[] = array(
                            'code' => $error,
                            'name' => 'The request is invalid or malformed.',
                        );
                    break;

                    case 'internal-empty-response':
                        $errors[] = array(
                            'code' => $error,
                            'name' => 'The recaptcha response is required.',
                        );
                    break;

                    default:
                        $errors[] = array(
                            'code' => $error,
                            'name' => $error,
                        );
                }
            }
        }

        return $errors;
    }
287806
private function GetMessage($code)
	{
		$errors = array();
		$errors["-1"] = "Error in request Data was not by received intact by Skipjack Transaction Network.";
		$errors["0"] = "Communication Failure Error in Request and Response at IP level. Use Get Transaction Status before retrying transaction.";
		$errors["1"] = "Success";
		$errors["-35"] = "Credit card number does not comply with the Mod10 check. Retry with correct credit card number.";
		$errors["-37"] = "Skipjack is unable to communicate with payment Processor.  Please Retry.";
		$errors["-39"] = "Check HTML Serial Number length and that it is a correct/valid number. Confirm you are sending to the correct environment (Development or Production)";
		$errors["-51"] = "Length or value of zip code The value or length for billing zip code is incorrect.";
		$errors["-52"] = "The value or length for shipping zip code is incorrect.";
		$errors["-53"] = "The value or length for credit card expiration month is incorrect.";
		$errors["-54"] = "The value or length of the month or year of the credit card account number was incorrect.";
		$errors["-55"] = "The value or length or billing street address is incorrect.";
		$errors["-56"] = "The value or length of the shipping address is incorrect.";
		$errors["-57"] = "The length of the transaction amount must be at least 3 digits long (excluding the decimal place).";
		$errors["-58"] = "Merchant Name associated with Skipjack account is misconfigured or invalid";
		$errors["-59"] = "Merchant Address associated with Skipjack account is misconfigured or invalid Skipjack Financial Services Skipjack Integration GuidePage 52 of 251";
		$errors["-60"] = "Merchant State associated with Skipjack account is misconfigured or invalid";
		$errors["-61"] = "The value or length for shipping state/province is empty.";
		$errors["-62"] = "The value for length orderstring is empty.";
		$errors["-64"] = "The value for the phone number is incorrect.";
		$errors["-65"] = "Error empty sjname The value or length for billing name is empty.";
		$errors["-66"] = "The value or length for billing e-mail is empty.";
		$errors["-67"] = "The value or length for billing street address is empty.";
		$errors["-68"] = "The value or length for billing city is empty.";
		$errors["-69"] = "The value or length for billing state is empty.";
		$errors["-70"] = "Zip Code field is empty.";
		$errors["-71"] = "Ordernumber field is empty.";
		$errors["-72"] = "Account number field is empty";
		$errors["-73"] = "Month field is empty.";
		$errors["-74"] = "Year field is empty.";
		$errors["-75"] = "Serial number field is empty.";
		$errors["-76"] = "Transaction amount field is empty.";
		$errors["-77"] = "Orderstring field is empty.";
		$errors["-78"] = "Shiptophone field is empty.";
		$errors["-79"] = "Length or value sjname The value or length for billing name is empty.";
		$errors["-80"] = "Error in the length or value of shiptophone.";
		$errors["-81"] = "Length or value of Customer location";
		$errors["-82"] = "The value or length for billing state is empty.";
		$errors["-83"] = "The value or length for shipping phone is empty.";
		$errors["-84"] = "There is already an existing pending transaction in the register sharing the posted Order Number.";
		$errors["-85"] = "Airline leg field value is invalid or empty.";
		$errors["-86"] = "Airline ticket info field is invalid or empty";
		$errors["-87"] = "Point of Sale check routing number is invalid or empty.";
		$errors["-88"] = "Point of Sale check account number is invalid or empty.";
		$errors["-89"] = "Point of Sale check MICR invalid or empty.";
		$errors["-90"] = "Point of Sale check number missingor invalid Point of Sale check number invalid or empty.";
		$errors["-91"] = "\"Make CVV a required field feature\" enabled in the Merchant Account Setup interface but no CVV code was sent in the transaction data.";
		$errors["-92"] = "Approval Code Invalid. Approval Code is a 6 digit code.";
		$errors["-93"] = "Blind Credits Request Refused \"Allow Blind Credits\" option must be enabled on the Skipjack Merchant Account.";
		$errors["-94"] = "BlindCreditsFailed Skipjack Financial Services Skipjack Integration GuidePage 53 of 251";
		$errors["-95"] = "Voice Authorization Request Refused Voice Authorization option must be enabled on the Skipjack";
		$errors["-96"] = "Voice Authorizations Failed";
		$errors["-97"] = "Fraud Rejection Violates Velocity Settling.";
		$errors["-98"] = "Invalid Discount Amount";
		$errors["-99"] = "POS PIN Debit Pin BlockDebit-specific";
		$errors["-100"] = "POS PIN Debit Invalid Key Serial Number Debit-specific";
		$errors["-101"] = "Data for Verified by Visa/MC Secure Code is invalid.";
		$errors["-102"] = "Authentication Data Not Allowed";
		$errors["-103"] = "POS checkdateofbirth variable contains a birth date in an incorrect format. Use MM/DD/YYYY format for this variable.";
		$errors["-104"] = "POS checkidentificationtype variable contains a identificationtype value which is invalid. Use the single digit value where Social Security Number=1, Drivers License=2 for this variable.";
		$errors["-105"] = "Track Data is in invalid format.";
		$errors["-106"] = "POS Check Invalid Account Type";
		$errors["-107"] = "POS PIN Debit Invalid Sequence Number";
		$errors["-108"] = "Invalid Transaction ID";
		$errors["-109"] = "Invalid From Account Type";
		$errors["-110"] = "Pos Error Invalid To Account Type";
		$errors["-112"] = "Pos Error Invalid Auth Option";
		$errors["-113"] = "Pos Error Transaction Failed";
		$errors["-114"] = "Pos Error Invalid Incoming Eci";
		$errors["-115"] = "POS Check Invalid Check Type";
		$errors["-116"] = "POS Check lane or cash register number is invalid. Use a valid lane or cash register number that has been configured in the Skipjack Merchant Account.";
		$errors["-117"] = "POS Check Invalid Cashier Number";


		return (isset($errors[$code])) ? $errors[$code] : "Unknown Error";
	}
722514
public function getValidationErrors()
    {
        if ($this->isValid()) {
            return [];
        }
        
        // if it's already cached, just return it
        if (count($this->validationErrors) > 0) {
            return $this->validationErrors;
        }


        // All errors can be spotted in the fields
        foreach ($this->getFields() as $field) {
            if (!$field->isValid()) {
                $this->validationErrors[$field->getName()] = $field->getErrors(true);
            }
        }

        return $this->validationErrors;
    }
657362
public function getFirstErrors()
    {
        $errors = array();
        foreach (array_keys($this->errors) as $name) {
            $errors[$name] = current($this->errors[$name]);
        }

        return $errors;
    }
896340
public function getErrorLists()
    {
        $names = array_values($this->action_names);
        $errors = [];
        foreach ($names as $name) {
            $errors[$name] = $this->getErrorListByName($name);
        }
        return $errors;
    }
945009
public static function getErrors()
	{
		$list	= array();
		foreach( $this->errors as $errorKey )
			$list[$errorKey]	= self::$rules[$errorKey];
		return $list;
	}
360017
public function getItemsWithUnhandledErrors()
    {
        $list = [];
        foreach ($this->getItems() as $item) {
            if ($item->hasUnhandledError()) {
                $list[] = $item;
            }
        }

        return $list;
    }
249174
public function error() {
		$errors = array();

		foreach (func_get_args() as $msg) {
			if (is_array($msg)) {
				$errors = array_merge($errors, $msg);
			} else {
				$errors[] = $msg;
			}
		}
		
		return count($errors) ? $errors : array(self::ERROR_UNKNOWN);
	}