Skip to content
IT Nursery
  • Home
  • Programming
    • Mac / IOS
    • Android
    • Web Applications
    • PHP
    • Java
    • C
    • C++
  • DataBase
    • MySQL
  • CMS
    • WordPress
  • System and Network
    • Serverfault

exception

How do I print an exception in Python?

by IT Nursery

For Python 2.6 and later and Python 3.x: except Exception as e: print(e) For Python 2.5 and earlier, use: except Exception,e: print str(e)

Tags error-handling, exception, python

How do you assert that a certain exception is thrown in JUnit tests?

by IT Nursery

How do you assert that a certain exception is thrown in JUnit tests?

Tags assert, exception, java, junit, junit4

Best practices for committing a transaction in SQL Server where TRY CATCH is used

by IT Nursery

In a SQL Server code block, what is the best place to place the commit transaction? Inside the try catch block or outside … Read more

Tags code, exception, sql-server, t-sql, transaction

Can stable (or immutable) functions call volatile functions?

by IT Nursery

The PostgreSQL documentation states: Any function with side-effects must be labeled VOLATILE… Consider the following function: CREATE OR REPLACE FUNCTION count_items() RETURNS integer … Read more

Tags exception, logs, postgresql

One Complex Stored Procedure Causes Estimated Cost Exception

by IT Nursery

In SQL Server, I’m getting the following error “The query has been canceled because the estimated cost of this query (5822) exceeds the … Read more

Tags exception, sql-server, sql-server-2008-r2

How do I reraise an exception in a PL/pgSQL EXCEPTION block?

by IT Nursery

Consider the following (incomplete) block of PL/pgSQL inside a function: CREATE OR REPLACE FUNCTION my_calc(myvar1 NUMERIC, myvar2 NUMERIC) RETURNS NUMERIC RETURNS NULL ON … Read more

Tags exception, plpgsql, postgresql

How to get exception context for a manually raised exception in PL/pgSQL?

by IT Nursery

In Postgres, we get the “stack trace” of exceptions using this code: EXCEPTION WHEN others THEN GET STACKED DIAGNOSTICS v_error_stack = PG_EXCEPTION_CONTEXT; This … Read more

Tags error-handling, exception, plpgsql, postgresql, postgresql-9.3

How to catch and handle only specific Oracle exceptions?

by IT Nursery

From this and this i guess, that there is no predefined Named System Exceptions for ORA-00955. How can I rewrite the following to … Read more

Tags exception, oracle

What are the best practices for catching and re-throwing exceptions?

by IT Nursery

Should caught exceptions be re-thrown directly, or should they be wrapped around a new exception? That is, should I do this: try { … Read more

Tags exception, php

What is the proper way to display the full InnerException?

by IT Nursery

What is the proper way to show my full InnerException. I found that some of my InnerExceptions has another InnerException and that go’s … Read more

Tags c, exception, inner-exception
Post navigation
Older posts
Page1 Page2 … Page16 Next →

Recent Posts

  • Advice for improving internal dashboard [closed]
  • grep : ‘+’ special character
  • File location for Syslogs in Centos machine
  • How to collect users’ task completion times?
  • “service {FOO} start” vs. “/etc/init.d/{FOO} start”? [closed]
IT Nursery
Creative Commons License
This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.

Important Link

  • About
  • Privacy Policy
  • Contact

IT Nursery

The Goal of ITNursery Engaging the world to foster innovation through aggregate information. Our Question Answer post, blog information, products and tools help developers and technologists in life and at work.

copyright © 2023 All Right Reserved | IT NurSery