export class TypeOrmAdminSchemaError extends Error {
  constructor(
    public details: {
      entityName: string;
      fieldName: string;
      reason: string;
      message: string;
    },
  ) {
    super(`[TypeOrmAdminSchemaError] ${details.entityName}.${details.fieldName}: ${details.reason} - ${details.message}`);
    this.name = 'TypeOrmAdminSchemaError';
  }
}