抛出新异常时,如果不需要抛出异常,最好只返回true.或者,最好返回false而不是抛出异常.我正在使用PHP.
php exception-handling
exception-handling ×1
php ×1