Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
0.00% covered (danger)
0.00%
0 / 3
0.00% covered (danger)
0.00%
0 / 1
CRAP
0.00% covered (danger)
0.00%
0 / 1
SNSError
0.00% covered (danger)
0.00%
0 / 3
0.00% covered (danger)
0.00%
0 / 1
2
0.00% covered (danger)
0.00%
0 / 1
 __construct
0.00% covered (danger)
0.00%
0 / 3
0.00% covered (danger)
0.00%
0 / 1
2
1<?php
2
3namespace Attestto\SolanaPhpSdk\Exceptions;
4
5use Exception;
6use Throwable;
7
8
9class SNSError extends Exception {
10    public $type;
11    public $name;
12
13    const SymbolNotFound = "SymbolNotFound";
14    const InvalidSubdomain = "InvalidSubdomain";
15    const FavouriteDomainNotFound = "FavouriteDomainNotFound";
16    const MissingParentOwner = "MissingParentOwner";
17    const U32Overflow = "U32Overflow";
18    const InvalidBufferLength = "InvalidBufferLength";
19    const U64Overflow = "U64Overflow";
20    const NoRecordData = "NoRecordData";
21    const InvalidRecordData = "InvalidRecordData";
22    const UnsupportedRecord = "UnsupportedRecord";
23    const InvalidEvmAddress = "InvalidEvmAddress";
24    const InvalidInjectiveAddress = "InvalidInjectiveAddress";
25    const InvalidARecord = "InvalidARecord";
26    const InvalidAAAARecord = "InvalidAAAARecord";
27    const InvalidRecordInput = "InvalidRecordInput";
28    const InvalidSignature = "InvalidSignature";
29    const AccountDoesNotExist = "AccountDoesNotExist";
30    const MultipleRegistries = "MultipleRegistries";
31    const InvalidReverseTwitter = "InvalidReverseTwitter";
32    const NoAccountData = "NoAccountData";
33    const InvalidInput = "InvalidInput";
34    const InvalidDomain = "InvalidDomain";
35    const InvalidCustomBg = "InvalidCustomBackground";
36    const UnsupportedSignature = "UnsupportedSignature";
37    const RecordDoestNotSupportGuardianSig = "RecordDoestNotSupportGuardianSig";
38    const RecordIsNotSigned = "RecordIsNotSigned";
39    const UnsupportedSignatureType = "UnsupportedSignatureType";
40    const InvalidSolRecordV2 = "InvalidSolRecordV2";
41    const MissingVerifier = "MissingVerifier";
42    const PythFeedNotFound = "PythFeedNotFound";
43
44    public function __construct($type, $message = null) {
45        parent::__construct($message);
46        $this->type = $type;
47        $this->name = "SNSError";
48    }
49}