1
2
3
4
<?php

class MyClass {
...

PHP Exception handling

by xrstf.myopenid.com, July 20, 2010 16:30, 1 refactoring, tagged with php, exceptions, transactions, pdo

I've got this pattern all o...

Avatar Talk
1
2
3
4
parameter, file, text = ARGV

if parameter == '-w' #=> write mode
...

Ruby Clumsy file I/O program

by thaostra.myopenid.com, June 21, 2010 00:06, 1 refactoring, tagged with I/O, exceptions, arguments, parameters

This is my first attempt of...

Avatar Talk
1
2
3
4
begin
  data["body"] = content[1].split(/\W{2,}/)[0].strip()
rescue Exception => e
...

Ruby Exception Handling in Ruby

by Tafkas, March 19, 2010 23:38, 4 refactorings, tagged with ruby, exceptions

I have the following code w...

693a4661eaa71435ce5ebe61de64c5a4 Talk
1
2
3
4
public abstract class I18NException extends Exception {

   public enum Message implements ExceptionMessage {
...

Java Internationalize Exceptions

by David Linsin, June 27, 2008 20:09, 2 refactorings, tagged with java, exceptions, i18n

This is a template for Exce...

Ef079515af1c9963c7cd33e0b4f00e88 Talk