GNU Octave  4.4.1
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
lo-error.c File Reference
#include <stdarg.h>
#include <stdio.h>
#include <stdlib.h>
#include "lo-error.h"
Include dependency graph for lo-error.c:

Go to the source code of this file.

Functions

void liboctave_fatal (const char *fmt,...)
 
void liboctave_fatal_with_id (const char *id, const char *fmt,...)
 
void liboctave_warning (const char *fmt,...)
 
void liboctave_warning_with_id (const char *id, const char *fmt,...)
 
void set_liboctave_error_handler (OCTAVE_NORETURN liboctave_error_handler f)
 
void set_liboctave_error_with_id_handler (OCTAVE_NORETURN liboctave_error_with_id_handler f)
 
void set_liboctave_warning_handler (liboctave_warning_handler f)
 
void set_liboctave_warning_with_id_handler (liboctave_warning_with_id_handler f)
 
static void verror (const char *name, const char *fmt, va_list args)
 

Variables

OCTAVE_NORETURN liboctave_error_handler current_liboctave_error_handler = liboctave_fatal
 
OCTAVE_NORETURN liboctave_error_with_id_handler current_liboctave_error_with_id_handler = liboctave_fatal_with_id
 
liboctave_warning_handler current_liboctave_warning_handler = liboctave_warning
 
liboctave_warning_with_id_handler current_liboctave_warning_with_id_handler = liboctave_warning_with_id
 

Function Documentation

◆ liboctave_fatal()

void liboctave_fatal ( const char *  fmt,
  ... 
)

Definition at line 101 of file lo-error.c.

References verror().

Referenced by set_liboctave_error_handler().

◆ liboctave_fatal_with_id()

void liboctave_fatal_with_id ( const char *  id,
const char *  fmt,
  ... 
)

Definition at line 112 of file lo-error.c.

References verror().

Referenced by set_liboctave_error_with_id_handler().

◆ liboctave_warning()

void liboctave_warning ( const char *  fmt,
  ... 
)

Definition at line 125 of file lo-error.c.

References verror().

Referenced by set_liboctave_warning_handler().

◆ liboctave_warning_with_id()

void liboctave_warning_with_id ( const char *  id,
const char *  fmt,
  ... 
)

Definition at line 134 of file lo-error.c.

References verror().

Referenced by set_liboctave_warning_with_id_handler().

◆ set_liboctave_error_handler()

void set_liboctave_error_handler ( OCTAVE_NORETURN liboctave_error_handler  f)

Definition at line 64 of file lo-error.c.

References current_liboctave_error_handler, f, and liboctave_fatal().

◆ set_liboctave_error_with_id_handler()

void set_liboctave_error_with_id_handler ( OCTAVE_NORETURN liboctave_error_with_id_handler  f)

Definition at line 73 of file lo-error.c.

References current_liboctave_error_with_id_handler, f, and liboctave_fatal_with_id().

◆ set_liboctave_warning_handler()

void set_liboctave_warning_handler ( liboctave_warning_handler  f)

Definition at line 83 of file lo-error.c.

References current_liboctave_warning_handler, f, and liboctave_warning().

◆ set_liboctave_warning_with_id_handler()

void set_liboctave_warning_with_id_handler ( liboctave_warning_with_id_handler  f)

◆ verror()

static void verror ( const char *  name,
const char *  fmt,
va_list  args 
)
static

Definition at line 53 of file lo-error.c.

References name.

Referenced by liboctave_fatal(), liboctave_fatal_with_id(), liboctave_warning(), and liboctave_warning_with_id().

Variable Documentation

◆ current_liboctave_error_handler

OCTAVE_NORETURN liboctave_error_handler current_liboctave_error_handler = liboctave_fatal

Definition at line 38 of file lo-error.c.

Referenced by aepbalance< T >::aepbalance(), Matrix::append(), FloatMatrix::append(), ComplexMatrix::append(), FloatComplexMatrix::append(), octave::base64_encode(), SparseMatrix::bsolve(), SparseComplexMatrix::bsolve(), octave::math::chol2inv(), DiagMatrix::column(), FloatDiagMatrix::column(), ComplexDiagMatrix::column(), FloatComplexDiagMatrix::column(), ComplexMatrix::ComplexMatrix(), Sparse< bool >::compute_index(), Sparse< bool >::delete_elements(), qr< T >::delete_row(), Matrix::diag(), FloatMatrix::diag(), FloatComplexMatrix::diag(), octave::math::do_bessel(), do_bsxfun_op(), DASPK::do_integrate(), chol< T >::downdate(), SparseMatrix::dsolve(), SparseComplexMatrix::dsolve(), EigsComplexNonSymmetricFunc(), EigsComplexNonSymmetricMatrix(), EigsComplexNonSymmetricMatrixShift(), EigsRealNonSymmetricFunc(), EigsRealNonSymmetricMatrix(), EigsRealNonSymmetricMatrixShift(), EigsRealSymmetricFunc(), EigsRealSymmetricMatrix(), EigsRealSymmetricMatrixShift(), octave::command_history::error(), FloatDiagMatrix::fill(), DiagMatrix::fill(), ComplexDiagMatrix::fill(), FloatComplexDiagMatrix::fill(), FloatComplexMatrix::FloatComplexMatrix(), Matrix::fsolve(), SparseMatrix::fsolve(), SparseComplexMatrix::fsolve(), octave_rand::get_dist_id(), octave::crypto::hash(), ind2sub(), gepbalance< T >::init(), EIG::init(), FloatEIG::init(), ComplexNDArray::insert(), FloatComplexNDArray::insert(), Sparse< bool >::insert(), qr< T >::insert_row(), chol< T >::insert_sym(), linspace(), FloatMatrix::lssolve(), FloatMatrix::ltsolve(), SparseMatrix::ltsolve(), SparseComplexMatrix::ltsolve(), FloatComplexMatrix::ltsolve(), octave::math::lu< T >::lu(), MatrixType::mark_as_permuted(), MatrixType::mark_as_symmetric(), matrix_norm(), max(), min(), octave_putenv(), Array< octave_value >::permute(), DiagMatrix::row(), FloatDiagMatrix::row(), ComplexDiagMatrix::row(), FloatComplexDiagMatrix::row(), octave::math::rsf2csf< ComplexMatrix, Matrix >(), octave::math::rsf2csf< FloatComplexMatrix, FloatMatrix >(), octave::math::chol< T >::set(), set_liboctave_error_handler(), octave::file_info::snarf_file(), Sparse< bool >::sort(), Sparse< bool >::Sparse(), Matrix::stack(), FloatMatrix::stack(), ComplexMatrix::stack(), FloatComplexMatrix::stack(), oct_data_conv::string_to_data_type(), octave::mach_info::string_to_float_format(), sub2ind(), octave::math::svd< T >::svd(), svd_matrix_norm(), SparseMatrix::trisolve(), SparseComplexMatrix::trisolve(), chol< T >::update(), SparseMatrix::utsolve(), FloatMatrix::utsolve(), SparseComplexMatrix::utsolve(), and FloatComplexMatrix::utsolve().

◆ current_liboctave_error_with_id_handler

OCTAVE_NORETURN liboctave_error_with_id_handler current_liboctave_error_with_id_handler = liboctave_fatal_with_id

Definition at line 42 of file lo-error.c.

Referenced by set_liboctave_error_with_id_handler().

◆ current_liboctave_warning_handler

liboctave_warning_handler current_liboctave_warning_handler = liboctave_warning

Definition at line 46 of file lo-error.c.

Referenced by set_liboctave_warning_handler().

◆ current_liboctave_warning_with_id_handler

liboctave_warning_with_id_handler current_liboctave_warning_with_id_handler = liboctave_warning_with_id

Definition at line 50 of file lo-error.c.

Referenced by set_liboctave_warning_with_id_handler().