mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-16 05:50:55 +08:00
complains.php + confirm_resend.php add lock
This commit is contained in:
20
app/Exceptions/LockFailException.php
Normal file
20
app/Exceptions/LockFailException.php
Normal file
@@ -0,0 +1,20 @@
|
||||
<?php
|
||||
|
||||
namespace App\Exceptions;
|
||||
|
||||
class LockFailException extends NexusException
|
||||
{
|
||||
public function __construct(protected string $lockName, protected string $lockOwner)
|
||||
{
|
||||
parent::__construct();
|
||||
}
|
||||
|
||||
public function getLockName(): string
|
||||
{
|
||||
return $this->lockName;
|
||||
}
|
||||
public function getLockOwner(): string
|
||||
{
|
||||
return $this->lockOwner;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user