/* // Matrix Construct // // Copyright (C) Matrix Construct Developers, Authors & Contributors // Copyright (C) 2016-2018 Jason Volk // // Permission to use, copy, modify, and/or distribute this software for any // purpose with or without fee is hereby granted, provided that the above // copyright notice and this permission notice is present in all copies. The // full license for this software is available in the LICENSE file. */ 'use strict'; /************************************** * * Errors and Debugging * */ /** Root exception for client * * The members of an error object are correlated with the bindings * in the DOM template 'ircd_error' * * @param arguments[1] (or arguments[0].handled) - This callback is invoked when the exception * has been "handled." It's a way to place a continuation in the same callback scopechain * after the user or other code has acknowledged the error. * * Also: arguments[0].element - A DOM element from which is considered the "user origin" * for the exception (ex. a