alex
unread,Dec 9, 2020, 3:49:44 AM12/9/20You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to
if (!rewind($stream)) {
trigger_error(
"Operazione fallita",
E_USER_ERROR
);
}
Però al posto dell'errore potrei lanciare un'eccezione?
Di che tipo?
throw new Exception; // troppo generica?
throw new InvalidArgumentException; // forse non è addatta
throw new UnexpectedValueException; // forse andrebbe bene... forse...
throw new Error; // forse andrebbe bene... forse...
Cosa ne pensate?