org.apache.fop.util

Class LogUtil


public class LogUtil
extends java.lang.Object

Convenience Logging utility methods used in FOP

Method Summary

static void
handleError(Log log, String errorStr, boolean strict)
Convenience method that handles any error appropriately
static void
handleException(Log log, Exception e, boolean strict)
Convenience method that handles any error appropriately

Method Details

handleError

public static void handleError(Log log,
                               String errorStr,
                               boolean strict)
            throws FOPException
Convenience method that handles any error appropriately
Parameters:
log - log
errorStr - error string
strict - validate strictly
Throws:
FOPException - fop exception

handleException

public static void handleException(Log log,
                                   Exception e,
                                   boolean strict)
            throws FOPException
Convenience method that handles any error appropriately
Parameters:
log - log
e - exception
strict - validate strictly
Throws:
FOPException - fop exception

Copyright 1999-2008 The Apache Software Foundation. All Rights Reserved.