00001 /*-----------------------------------------------------------*- c++ -*-\ 00002 | | 00003 | __ __ ____ _____ ____ | 00004 | \ \ / /_ _/ ___|_ _|___ \ | 00005 | \ V / _` \___ \ | | __) | | 00006 | | | (_| |___) || | / __/ | 00007 | |_|\__,_|____/ |_| |_____| | 00008 | | 00009 | core system | 00010 | (C) SuSE GmbH | 00011 \----------------------------------------------------------------------/ 00012 00013 File: Y2ErrorComponent.h 00014 00015 Author: Martin Vidner <mvidner@suse.cz> 00016 00017 /-*/ 00018 00019 /* 00020 * Component that represents an error while creating another component 00021 * (the component creator would otherwise keep trying while we want to cry foul) 00022 * 00023 * BTW we do not need a matching component creator because we do not 00024 * WANT errors, they just happen, pesky things. 00025 */ 00026 00027 #ifndef Y2ErrorComponent_h 00028 #define Y2ErrorComponent_h 00029 00030 #include "Y2Component.h" 00031 00035 class Y2ErrorComponent : public Y2Component 00036 { 00037 public: 00038 00042 Y2ErrorComponent () {} 00043 00047 string name() const { return "ErrorComponent"; } 00048 00049 }; 00050 00051 00052 #endif // Y2ErrorComponent_h