Developer Details
Error Type:
{error instanceof ApiError ? error.type : 'Unknown'}
Developer Message:
{parsed.developerMessage}
{error instanceof ApiError && error.context.endpoint && (
Endpoint:
{error.context.method} {error.context.endpoint}
)}
{error instanceof ApiError && error.context.statusCode && (
Status Code:
{error.context.statusCode}
)}
{error instanceof ApiError && error.context.retryCount !== undefined && (
Retry Count:
{error.context.retryCount}
)}
{error instanceof ApiError && error.context.timestamp && (
Timestamp:
{error.context.timestamp}
)}
{error instanceof ApiError && error.context.troubleshooting && (
Troubleshooting:
{error.context.troubleshooting}
)}
{parsed.validationErrors.length > 0 && (
Validation Errors:
{JSON.stringify(parsed.validationErrors, null, 2)}
)}
Quick Actions:
{retryable && onRetry && (
Retry
)}
{
if (error instanceof Error) {
console.error('Full error details:', error);
if (error.stack) {
console.log('Stack trace:', error.stack);
}
}
}}
className="px-2 py-1 bg-purple-600/20 hover:bg-purple-600/30 text-purple-400 rounded transition-colors"
>
Log to Console