$pkey[] = $key;
$pval[] = self::valueString($this->$key);
} else {
+ // FIXME: i18n?
throw new Exception("Unknown key type $key => $type for " . $this->tableName());
}
}
} else if ($type == 'fulltext') {
$search_engine = new MySQLSearch($this, $table);
} else {
+ // FIXME: i18n?
throw new ServerException('Unknown search type: ' . $type);
}
} else {
}
if (!$dsn) {
- throw new Exception("No database name / dsn found anywhere");
+ // TRANS: Exception thrown when database name or Data Source Name could not be found.
+ throw new Exception(_("No database name / DSN found anywhere"));
}
return $dsn;
if ($message instanceof PEAR_Error) {
$message = $message->getMessage();
}
+ // FIXME: i18n?
throw new ServerException("[$id] DB_DataObject error [$type]: $message");
}
case 'sql':
case 'datetime':
case 'time':
+ // FIXME: i18n?
throw new ServerException("Unhandled DB_DataObject_Cast type passed as cacheKey value: '$v->type'");
break;
default:
+ // FIXME: i18n?
throw new ServerException("Unknown DB_DataObject_Cast type passed as cacheKey value: '$v->type'");
break;
}