All checks were successful
Deploy api / deploy (push) Successful in 22s
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
28 lines
547 B
PHP
28 lines
547 B
PHP
<?php
|
|
|
|
namespace App\Exceptions;
|
|
|
|
use RuntimeException;
|
|
|
|
/**
|
|
* Wellnet SOAPエラー例外
|
|
*/
|
|
class WellnetSoapException extends RuntimeException
|
|
{
|
|
private string $wellnetCode;
|
|
|
|
public function __construct(string $wellnetCode, string $message = '', ?\Throwable $previous = null)
|
|
{
|
|
$this->wellnetCode = $wellnetCode;
|
|
parent::__construct($message, 0, $previous);
|
|
}
|
|
|
|
/**
|
|
* Wellnetエラーコード取得
|
|
*/
|
|
public function getWellnetCode(): string
|
|
{
|
|
return $this->wellnetCode;
|
|
}
|
|
}
|