This Exception get thrown if the programmer tries to convert a List, Map or Undefined into a Value

C# |
public class SofuNotValueException : Exception

All Members | Constructors | Methods | Properties | ||
Icon | Member | Description |
---|---|---|
![]() | SofuNotValueException()()() |
Creates a new SofuNotValueException
|
![]() | SofuNotValueException(SofuObject) |
Creates a new SofuNotValueException and also shows the type of the SofuObject that failed to be converted.
This one is default when calling Value() or asValue()
|
![]() | Data | (Inherited from Exception.) |
![]() | Equals(Object) | (Inherited from Object.) |
![]() | Finalize()()() | (Inherited from Object.) |
![]() | GetBaseException()()() | (Inherited from Exception.) |
![]() | GetHashCode()()() | (Inherited from Object.) |
![]() | GetObjectData(SerializationInfo, StreamingContext) | (Inherited from Exception.) |
![]() | GetType()()() | (Inherited from Exception.) |
![]() | HelpLink | (Inherited from Exception.) |
![]() | HResult | (Inherited from Exception.) |
![]() | InnerException | (Inherited from Exception.) |
![]() | MemberwiseClone()()() | (Inherited from Object.) |
![]() | Message | (Inherited from Exception.) |
![]() | Source | (Inherited from Exception.) |
![]() | StackTrace | (Inherited from Exception.) |
![]() | TargetSite | (Inherited from Exception.) |
![]() | ToString()()() | (Inherited from Exception.) |


Sofu.Map config = Sofu.LoadFile("Config.Sofu"); try { Console.WriteLine(config.value("Message").ToString()); } catch (SofuNotValueException e) { Console.WriteLine("Error while generation a message"); Console.WriteLine(e.message); }