Functions | Variables

ink_error.h File Reference

A brief file description. More...

#include <stdarg.h>
#include "ink_platform.h"
#include "ink_apidefs.h"
Include dependency graph for ink_error.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

inkcoreapi void ink_fatal_va (int return_code, const char *message_format, va_list ap) TS_NORETURN
 This routine prints/logs an error message given the printf format string in message_format, and the optional arguments.
void ink_fatal (int return_code, const char *message_format,...) TS_PRINTFLIKE(2
void ink_pfatal (int return_code, const char *message_format,...) TS_PRINTFLIKE(2
void ink_warning (const char *message_format,...) TS_PRINTFLIKE(1
void void ink_pwarning (const char *message_format,...) TS_PRINTFLIKE(1
void void void ink_notice (const char *message_format,...) TS_PRINTFLIKE(1
void void void void ink_eprintf (const char *message_format,...) TS_PRINTFLIKE(1
void void void void void ink_error (const char *message_format,...) TS_PRINTFLIKE(1
void void void void void void ink_dprintf (int debug_level, const char *message_format,...) TS_PRINTFLIKE(2
void void void void void void void ink_fatal_die (const char *message_format,...) TS_PRINTFLIKE(1
void ink_die_die_die (int retval) TS_NORETURN
 This routine causes process death.
int ink_set_dprintf_level (int debug_level)
 Set output level for ink_dprintf() function.

Variables

void TS_NORETURN

Detailed Description

A brief file description.

License

Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Definition in file ink_error.h.


Function Documentation

void ink_die_die_die ( int  retval  ) 

This routine causes process death.

Some signal handler problems got in the way of abort before, so this is an overzealous and somewhat amusing implementation.

Definition at line 41 of file ink_error.cc.

Referenced by ink_fatal_va(), and ink_pfatal().

void void void void void void ink_dprintf ( int  debug_level,
const char *  message_format,
  ... 
)
void void void void ink_eprintf ( const char *  message_format,
  ... 
)
void void void void void ink_error ( const char *  message_format,
  ... 
)
void ink_fatal ( int  return_code,
const char *  message_format,
  ... 
)
void void void void void void void ink_fatal_die ( const char *  message_format,
  ... 
)
inkcoreapi void ink_fatal_va ( int  return_code,
const char *  fmt,
va_list  ap 
)

This routine prints/logs an error message given the printf format string in message_format, and the optional arguments.

The program is then terminated with return_code.

Definition at line 55 of file ink_error.cc.

References ink_die_die_die(), and ink_stack_trace_dump().

Referenced by Diags::error_va(), ink_fatal(), and ink_fatal_die().

void void void ink_notice ( const char *  message_format,
  ... 
)
void ink_pfatal ( int  return_code,
const char *  message_format,
  ... 
)
void void ink_pwarning ( const char *  message_format,
  ... 
)
int ink_set_dprintf_level ( int  debug_level  ) 

Set output level for ink_dprintf() function.

For debugging purposes only!

Definition at line 243 of file ink_error.cc.

References ink_dprintf_level.

Referenced by main().

void ink_warning ( const char *  message_format,
  ... 
)

Variable Documentation

void void void void void void void TS_NORETURN

Definition at line 45 of file ink_error.h.