@solana/spl-token-group
Version:
SPL Token Group Interface JS API
48 lines • 1.52 kB
JavaScript
export class TokenGroupError extends Error {
constructor(message) {
super(message);
}
}
/** Thrown if size is greater than proposed max size */
export class SizeExceedsNewMaxSizeError extends TokenGroupError {
constructor() {
super(...arguments);
this.name = 'SizeExceedsNewMaxSizeError';
}
}
/** Thrown if size is greater than max size */
export class SizeExceedsMaxSizeError extends TokenGroupError {
constructor() {
super(...arguments);
this.name = 'SizeExceedsMaxSizeError';
}
}
/** Thrown if group is immutable */
export class ImmutableGroupError extends TokenGroupError {
constructor() {
super(...arguments);
this.name = 'ImmutableGroupError';
}
}
/** Thrown if incorrect mint authority has signed the instruction */
export class IncorrectMintAuthorityError extends TokenGroupError {
constructor() {
super(...arguments);
this.name = 'IncorrectMintAuthorityError';
}
}
/** Thrown if incorrect update authority has signed the instruction */
export class IncorrectUpdateAuthorityError extends TokenGroupError {
constructor() {
super(...arguments);
this.name = 'IncorrectUpdateAuthorityError';
}
}
/** Thrown if member account is the same as the group account */
export class MemberAccountIsGroupAccountError extends TokenGroupError {
constructor() {
super(...arguments);
this.name = 'MemberAccountIsGroupAccountError';
}
}
//# sourceMappingURL=errors.js.map