Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ENH - add ft_error to the private directory of modules
- Loading branch information
1 parent
9df5ec5
commit 1e7fa24
Showing
8 changed files
with
296 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
function varargout = ft_error(varargin) | ||
|
||
% FT_ERROR prints an error message on screen, just like the standard ERROR function. | ||
% | ||
% Use as | ||
% ft_error(...) | ||
% with arguments similar to fprintf, or | ||
% ft_error(msgId, ...) | ||
% with arguments similar to error. | ||
% | ||
% See also FT_ERROR, FT_WARNING, FT_NOTICE, FT_INFO, FT_DEBUG, ERROR, WARNING | ||
|
||
% Copyright (C) 2017, Robert Oostenveld | ||
% | ||
% This file is part of FieldTrip, see http://www.fieldtriptoolbox.org | ||
% for the documentation and details. | ||
% | ||
% FieldTrip is free software: you can redistribute it and/or modify | ||
% it under the terms of the GNU General Public License as published by | ||
% the Free Software Foundation, either version 3 of the License, or | ||
% (at your option) any later version. | ||
% | ||
% FieldTrip is distributed in the hope that it will be useful, | ||
% but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
% GNU General Public License for more details. | ||
% | ||
% You should have received a copy of the GNU General Public License | ||
% along with FieldTrip. If not, see <http://www.gnu.org/licenses/>. | ||
% | ||
% $Id$ | ||
|
||
if nargout | ||
[varargout{1:nargout}] = ft_notification(varargin{:}); | ||
elseif isequal(varargin, {'last'}) | ||
% return an answer anyway | ||
varargout{1} = ft_notification(varargin{:}); | ||
else | ||
ft_notification(varargin{:}); | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
function varargout = ft_error(varargin) | ||
|
||
% FT_ERROR prints an error message on screen, just like the standard ERROR function. | ||
% | ||
% Use as | ||
% ft_error(...) | ||
% with arguments similar to fprintf, or | ||
% ft_error(msgId, ...) | ||
% with arguments similar to error. | ||
% | ||
% See also FT_ERROR, FT_WARNING, FT_NOTICE, FT_INFO, FT_DEBUG, ERROR, WARNING | ||
|
||
% Copyright (C) 2017, Robert Oostenveld | ||
% | ||
% This file is part of FieldTrip, see http://www.fieldtriptoolbox.org | ||
% for the documentation and details. | ||
% | ||
% FieldTrip is free software: you can redistribute it and/or modify | ||
% it under the terms of the GNU General Public License as published by | ||
% the Free Software Foundation, either version 3 of the License, or | ||
% (at your option) any later version. | ||
% | ||
% FieldTrip is distributed in the hope that it will be useful, | ||
% but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
% GNU General Public License for more details. | ||
% | ||
% You should have received a copy of the GNU General Public License | ||
% along with FieldTrip. If not, see <http://www.gnu.org/licenses/>. | ||
% | ||
% $Id$ | ||
|
||
if nargout | ||
[varargout{1:nargout}] = ft_notification(varargin{:}); | ||
elseif isequal(varargin, {'last'}) | ||
% return an answer anyway | ||
varargout{1} = ft_notification(varargin{:}); | ||
else | ||
ft_notification(varargin{:}); | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
function varargout = ft_error(varargin) | ||
|
||
% FT_ERROR prints an error message on screen, just like the standard ERROR function. | ||
% | ||
% Use as | ||
% ft_error(...) | ||
% with arguments similar to fprintf, or | ||
% ft_error(msgId, ...) | ||
% with arguments similar to error. | ||
% | ||
% See also FT_ERROR, FT_WARNING, FT_NOTICE, FT_INFO, FT_DEBUG, ERROR, WARNING | ||
|
||
% Copyright (C) 2017, Robert Oostenveld | ||
% | ||
% This file is part of FieldTrip, see http://www.fieldtriptoolbox.org | ||
% for the documentation and details. | ||
% | ||
% FieldTrip is free software: you can redistribute it and/or modify | ||
% it under the terms of the GNU General Public License as published by | ||
% the Free Software Foundation, either version 3 of the License, or | ||
% (at your option) any later version. | ||
% | ||
% FieldTrip is distributed in the hope that it will be useful, | ||
% but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
% GNU General Public License for more details. | ||
% | ||
% You should have received a copy of the GNU General Public License | ||
% along with FieldTrip. If not, see <http://www.gnu.org/licenses/>. | ||
% | ||
% $Id$ | ||
|
||
if nargout | ||
[varargout{1:nargout}] = ft_notification(varargin{:}); | ||
elseif isequal(varargin, {'last'}) | ||
% return an answer anyway | ||
varargout{1} = ft_notification(varargin{:}); | ||
else | ||
ft_notification(varargin{:}); | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
function varargout = ft_error(varargin) | ||
|
||
% FT_ERROR prints an error message on screen, just like the standard ERROR function. | ||
% | ||
% Use as | ||
% ft_error(...) | ||
% with arguments similar to fprintf, or | ||
% ft_error(msgId, ...) | ||
% with arguments similar to error. | ||
% | ||
% See also FT_ERROR, FT_WARNING, FT_NOTICE, FT_INFO, FT_DEBUG, ERROR, WARNING | ||
|
||
% Copyright (C) 2017, Robert Oostenveld | ||
% | ||
% This file is part of FieldTrip, see http://www.fieldtriptoolbox.org | ||
% for the documentation and details. | ||
% | ||
% FieldTrip is free software: you can redistribute it and/or modify | ||
% it under the terms of the GNU General Public License as published by | ||
% the Free Software Foundation, either version 3 of the License, or | ||
% (at your option) any later version. | ||
% | ||
% FieldTrip is distributed in the hope that it will be useful, | ||
% but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
% GNU General Public License for more details. | ||
% | ||
% You should have received a copy of the GNU General Public License | ||
% along with FieldTrip. If not, see <http://www.gnu.org/licenses/>. | ||
% | ||
% $Id$ | ||
|
||
if nargout | ||
[varargout{1:nargout}] = ft_notification(varargin{:}); | ||
elseif isequal(varargin, {'last'}) | ||
% return an answer anyway | ||
varargout{1} = ft_notification(varargin{:}); | ||
else | ||
ft_notification(varargin{:}); | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
function varargout = ft_error(varargin) | ||
|
||
% FT_ERROR prints an error message on screen, just like the standard ERROR function. | ||
% | ||
% Use as | ||
% ft_error(...) | ||
% with arguments similar to fprintf, or | ||
% ft_error(msgId, ...) | ||
% with arguments similar to error. | ||
% | ||
% See also FT_ERROR, FT_WARNING, FT_NOTICE, FT_INFO, FT_DEBUG, ERROR, WARNING | ||
|
||
% Copyright (C) 2017, Robert Oostenveld | ||
% | ||
% This file is part of FieldTrip, see http://www.fieldtriptoolbox.org | ||
% for the documentation and details. | ||
% | ||
% FieldTrip is free software: you can redistribute it and/or modify | ||
% it under the terms of the GNU General Public License as published by | ||
% the Free Software Foundation, either version 3 of the License, or | ||
% (at your option) any later version. | ||
% | ||
% FieldTrip is distributed in the hope that it will be useful, | ||
% but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
% GNU General Public License for more details. | ||
% | ||
% You should have received a copy of the GNU General Public License | ||
% along with FieldTrip. If not, see <http://www.gnu.org/licenses/>. | ||
% | ||
% $Id$ | ||
|
||
if nargout | ||
[varargout{1:nargout}] = ft_notification(varargin{:}); | ||
elseif isequal(varargin, {'last'}) | ||
% return an answer anyway | ||
varargout{1} = ft_notification(varargin{:}); | ||
else | ||
ft_notification(varargin{:}); | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
function varargout = ft_error(varargin) | ||
|
||
% FT_ERROR prints an error message on screen, just like the standard ERROR function. | ||
% | ||
% Use as | ||
% ft_error(...) | ||
% with arguments similar to fprintf, or | ||
% ft_error(msgId, ...) | ||
% with arguments similar to error. | ||
% | ||
% See also FT_ERROR, FT_WARNING, FT_NOTICE, FT_INFO, FT_DEBUG, ERROR, WARNING | ||
|
||
% Copyright (C) 2017, Robert Oostenveld | ||
% | ||
% This file is part of FieldTrip, see http://www.fieldtriptoolbox.org | ||
% for the documentation and details. | ||
% | ||
% FieldTrip is free software: you can redistribute it and/or modify | ||
% it under the terms of the GNU General Public License as published by | ||
% the Free Software Foundation, either version 3 of the License, or | ||
% (at your option) any later version. | ||
% | ||
% FieldTrip is distributed in the hope that it will be useful, | ||
% but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
% GNU General Public License for more details. | ||
% | ||
% You should have received a copy of the GNU General Public License | ||
% along with FieldTrip. If not, see <http://www.gnu.org/licenses/>. | ||
% | ||
% $Id$ | ||
|
||
if nargout | ||
[varargout{1:nargout}] = ft_notification(varargin{:}); | ||
elseif isequal(varargin, {'last'}) | ||
% return an answer anyway | ||
varargout{1} = ft_notification(varargin{:}); | ||
else | ||
ft_notification(varargin{:}); | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
function varargout = ft_error(varargin) | ||
|
||
% FT_ERROR prints an error message on screen, just like the standard ERROR function. | ||
% | ||
% Use as | ||
% ft_error(...) | ||
% with arguments similar to fprintf, or | ||
% ft_error(msgId, ...) | ||
% with arguments similar to error. | ||
% | ||
% See also FT_ERROR, FT_WARNING, FT_NOTICE, FT_INFO, FT_DEBUG, ERROR, WARNING | ||
|
||
% Copyright (C) 2017, Robert Oostenveld | ||
% | ||
% This file is part of FieldTrip, see http://www.fieldtriptoolbox.org | ||
% for the documentation and details. | ||
% | ||
% FieldTrip is free software: you can redistribute it and/or modify | ||
% it under the terms of the GNU General Public License as published by | ||
% the Free Software Foundation, either version 3 of the License, or | ||
% (at your option) any later version. | ||
% | ||
% FieldTrip is distributed in the hope that it will be useful, | ||
% but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
% GNU General Public License for more details. | ||
% | ||
% You should have received a copy of the GNU General Public License | ||
% along with FieldTrip. If not, see <http://www.gnu.org/licenses/>. | ||
% | ||
% $Id$ | ||
|
||
if nargout | ||
[varargout{1:nargout}] = ft_notification(varargin{:}); | ||
elseif isequal(varargin, {'last'}) | ||
% return an answer anyway | ||
varargout{1} = ft_notification(varargin{:}); | ||
else | ||
ft_notification(varargin{:}); | ||
end |