文件操作 - FormRequestError.ts
返回文件管理
返回主菜单
删除本文件
文件: /home/www/public/wp-content/plugins/give/src/DonationForms/resources/app/errors/FormRequestError.ts
编辑文件内容
/** * This Error adds a property of errors, * so we can catch a types error and loop through all the errors from the server. * * @since 3.0.0 */ class FormRequestError extends Error { public errors: Array<object>; constructor(errors: Array<object>, ...params) { // Pass remaining arguments (including vendor specific ones) to parent constructor super(...params); // Maintains proper stack trace for where our error was thrown (only available on V8) if (Error.captureStackTrace) { Error.captureStackTrace(this, FormRequestError); } this.name = 'FormRequestError'; this.errors = errors; } } export default FormRequestError;
修改文件时间
将文件时间修改为当前时间的前一年
删除文件