Skip to content

Commit

Permalink
PaladinsAPI class updated
Browse files Browse the repository at this point in the history
  • Loading branch information
anibalealvarezs committed Sep 26, 2021
1 parent 49c3c14 commit d8c5bfe
Show file tree
Hide file tree
Showing 4 changed files with 512 additions and 167 deletions.
8 changes: 5 additions & 3 deletions src/Exceptions/NotFoundException.php
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
<?php
<?php

namespace PaladinsDev\PHP\Exceptions;

use Exception;

/**
* @codeCoverageIgnore
*/
class NotFoundException extends \Exception
class NotFoundException extends Exception
{
public function __construct($message, $code = 0, Exception $previous = null)
{
Expand All @@ -14,6 +16,6 @@ public function __construct($message, $code = 0, Exception $previous = null)

public function __toString()
{
return __CLASS__ . ": [{$this->code}]: {$this->message}\n";
return __CLASS__ . ": [$this->code]: $this->message\n";
}
}
8 changes: 5 additions & 3 deletions src/Exceptions/PaladinsException.php
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
<?php
<?php

namespace PaladinsDev\PHP\Exceptions;

use Exception;

/**
* @codeCoverageIgnore
*/
class PaladinsException extends \Exception
class PaladinsException extends Exception
{
public function __construct($message, $code = 0, Exception $previous = null)
{
Expand All @@ -14,6 +16,6 @@ public function __construct($message, $code = 0, Exception $previous = null)

public function __toString()
{
return __CLASS__ . ": [{$this->code}]: {$this->message}\n";
return __CLASS__ . ": [$this->code]: $this->message\n";
}
}
6 changes: 4 additions & 2 deletions src/Exceptions/SessionException.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,12 @@

namespace PaladinsDev\PHP\Exceptions;

use Exception;

/**
* @codeCoverageIgnore
*/
class SessionException extends \Exception
class SessionException extends Exception
{
public function __construct($message, $code = 0, Exception $previous = null)
{
Expand All @@ -14,6 +16,6 @@ public function __construct($message, $code = 0, Exception $previous = null)

public function __toString()
{
return __CLASS__ . ": [{$this->code}]: {$this->message}\n";
return __CLASS__ . ": [$this->code]: $this->message\n";
}
}
Loading

0 comments on commit d8c5bfe

Please sign in to comment.