Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

exception(3) [php man page]

EXCEPTION(3)								 1							      EXCEPTION(3)

Exception

INTRODUCTION
Exception is the base class for all Exceptions. CLASS SYNOPSIS
Exception Exception Properties o protected string$message o protected int$code o protected string$file o protected int$line Methods o public Exception::__construct NULL ([string $message = ""], [int $code], [Exception $previous]) o finalpublic string Exception::getMessage (void ) o finalpublic Exception Exception::getPrevious (void ) o finalpublic mixed Exception::getCode (void ) o finalpublic string Exception::getFile (void ) o finalpublic int Exception::getLine (void ) o finalpublic array Exception::getTrace (void ) o finalpublic string Exception::getTraceAsString (void ) o public string Exception::__toString (void ) o finalprivate void Exception::__clone (void ) PROPERTIES
o $message -The exception message o $code -The exception code o $file -The filename where the exception was created o $line -The line where the exception was created PHP Documentation Group EXCEPTION(3)

Check Out this Related Man Page

PDOEXCEPTION(3) 							 1							   PDOEXCEPTION(3)

The PDOException class

INTRODUCTION
Represents an error raised by PDO. You should not throw a PDOException from your own code. See Exceptions for more information about Exceptions in PHP. CLASS SYNOPSIS
PDOException PDOExceptionextends RuntimeException Properties o public array$errorInfo o protected string$code Inherited properties o protected string$message o protected int$code o protected string$file o protected int$line Inherited methods o finalpublic string Exception::getMessage (void ) o finalpublic Exception Exception::getPrevious (void ) o finalpublic mixed Exception::getCode (void ) o finalpublic string Exception::getFile (void ) o finalpublic int Exception::getLine (void ) o finalpublic array Exception::getTrace (void ) o finalpublic string Exception::getTraceAsString (void ) o public string Exception::__toString (void ) o finalprivate void Exception::__clone (void ) PROPERTIES
o $errorInfo - Corresponds to PDO.errorInfo(3) or PDOStatement.errorInfo(3) o $code - SQLSTATE error code. Use Exception.getCode(3) to access it. PHP Documentation Group PDOEXCEPTION(3)
Man Page

15 More Discussions You Might Find Interesting

1. Solaris

How to catch and handle Makefile exceptions

I have a simple makefile which I use to sync libraries files from /source/sybase directory on the source machine where the Makefile resides to /destination/folder on the various destination machines like machine1, machine2, machine3 using solaris utility 'rsync'. So when I run "make -f makefilename... (7 Replies)
Discussion started by: waavman
7 Replies

2. Shell Programming and Scripting

Perl Exception - $!,$?,$@

Hi, I am trying to understand the significance of the special variables $!,$@ and $? in perl. I have a code block as follows: eval { Code Segment 1: #authenticating to the remote server $ftpobj -> login($username,$password) or die "Can't login to $remote_host"; ... (12 Replies)
Discussion started by: DILEEP410
12 Replies

3. UNIX Desktop Questions & Answers

kernel panic-not syncing:fatal exception while booting

Hi ALL, I am getting error.. kernal panic-not syncing:fatal exception while booting. Please help me.. Thanks Jack (7 Replies)
Discussion started by: jack00423
7 Replies

4. Shell Programming and Scripting

Need sed command with an exception

All, I am currently using the below code to add a line /var/temp/'$input1'/permissions Below is the shell :: sed ' /Unix_command/ a\ unix: /var/temp/'$input1'/permissions' temp1.txt> temp2.txt above will add the line below Unix_command word unix:... (7 Replies)
Discussion started by: raghav1982
7 Replies

5. Programming

How to get the correct exception file/line.

The below code throws error in the line number 32 where the function is defined. But How to find the line where the function is called. That is I want to throw the error at the line number 43 (as here the function is called). The code is: #include <iostream> #include <string>... (9 Replies)
Discussion started by: SamRoj
9 Replies

6. Shell Programming and Scripting

How to capture the cause of the exception using unix shell?

Hi all, Can u pls guide me in the following requirement, Am capturing the exceptions and the cause of that exception from a log file. i cud capture the exceptions by simple grep ie., with the following command cat logfile | grep "Exceptions" But i couldn't able to capture the cause... (8 Replies)
Discussion started by: vidhyaS
8 Replies

7. Shell Programming and Scripting

Shell script to unmonitor the mounts in exception file

I am trying to write a shell script for monitoring the file system mount. command I am using will retrieve a output as shown below. /dev/fsv29 2% /apps/rj/pgl/bslSys I also need to add exception mounts in a file and I would like script to ignore the mount which I specify. If I add the... (6 Replies)
Discussion started by: chandu123
6 Replies

8. Programming

C++ Exception class missing?

Hi I tried googling about it and I couldn't really find a solid answer. Why is the compiler missing the exception class when it seems to be a standard class? The code is here: //Rijndael.h #ifndef __RIJNDAEL_H__ #define __RIJNDAEL_H__ #include <exception> #include <cstring> using... (6 Replies)
Discussion started by: flagman5
6 Replies

9. Programming

PortInUse Exception in SerialDemo

Using JRE 1.4.2_12 on SCO OpenServer 5.0.7, I was able to use the Java Comm Api to open and close serial ports. After upgrading to JRE 1.4.2_19, the Java Comm Api complains that the ports are in use. Does anyone have any thoughts on how to make 1.4.2_19 work with Java Comm API? FYI. I was using... (21 Replies)
Discussion started by: rkelly
21 Replies

10. Shell Programming and Scripting

Disk Quota Exception while deleting the files

This is the full file name I get when I do ls -lt from my current directory. EXPORT_v1x0_20120811_11_T_065800_070000.dat.gz File names also consist of date as well. In the above file date is 20120811. So I am trying to delete all the files which starts with EXPORT_v1x0 and whose... (7 Replies)
Discussion started by: raihan26
7 Replies

11. Shell Programming and Scripting

Wildcards and exceptions

Hello: I have a very basic question. I'd like to select all files except for one file. For example, say I want to move all of the files in my current directory to a subdirectory called archive, I would use mv ./* archive/ But what if I want to move all files except for README.txt? Is there an... (19 Replies)
Discussion started by: Danny.Boy
19 Replies

12. Shell Programming and Scripting

[BASH] Floating point exception

Heyas I have a script (vhs - video handler script, using ffmpeg) to encode videos. It also encodes a dvd, but until now just non-copy-protected ones, so i've tried to add/implement a vobcopy wrapper to be used by my script. At first it looked quite fine, but when changing from the first VOB... (9 Replies)
Discussion started by: sea
9 Replies

13. UNIX for Beginners Questions & Answers

Finding and renaming files with exceptions

Hello all, I am a new ubuntu user (have to use it for work) and I am trying to learn and familiarize myself with commands that I will be using frequently. I would like some help in how I can get a list of all files with certain keywords in the filename. For example, I have a directory... (8 Replies)
Discussion started by: azurite
8 Replies

14. UNIX for Dummies Questions & Answers

Finding and renaming files with exceptions

(8 Replies)
Discussion started by: azurite
8 Replies

15. UNIX for Beginners Questions & Answers

Searching exception keyword in all logs in last 5 minutes

Hello Folks , I am a new bie to the world of unix , what i am planning to do is the I have the location in server to which i am access through the putty and the location is /mt/ttlog/avccomn/logs/201901/19 and at this location the files are listed as show startjmsnode1.sh_03.out... (7 Replies)
Discussion started by: punpun26262626
7 Replies