Spaces:
Runtime error
Runtime error
File size: 704 Bytes
5b12974 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 | export class MCPAuthProxyError extends Error {
constructor(message: string, public code: string) {
super(message)
this.name = 'MCPAuthProxyError'
}
}
export class InvalidCredentialsError extends MCPAuthProxyError {
constructor() {
super('Invalid or expired credentials', 'INVALID_CREDENTIALS')
}
}
export class OAuthError extends MCPAuthProxyError {
constructor(message: string) {
super(message, 'OAUTH_ERROR')
}
}
export class ProxyError extends MCPAuthProxyError {
constructor(message: string) {
super(message, 'PROXY_ERROR')
}
}
export class TransportError extends MCPAuthProxyError {
constructor(message: string) {
super(message, 'TRANSPORT_ERROR')
}
} |