fix new Exception throwing.
git-svn-id: https://profuse.googlecode.com/svn/branches/v2@325 aa027e90-d47c-11dd-86d7-074df07e0730
This commit is contained in:
parent
6b6ad10ba0
commit
539aa1310c
|
@ -157,7 +157,7 @@ RawDevice::RawDevice(const char *name, File::FileFlags flags) :
|
|||
|
||||
if (!_file.isValid())
|
||||
{
|
||||
throw new Exception(__METHOD__ ": Invalid file handle.");
|
||||
throw Exception(__METHOD__ ": Invalid file handle.");
|
||||
}
|
||||
|
||||
_readOnly = flags == File::ReadOnly;
|
||||
|
@ -178,7 +178,7 @@ RawDevice::RawDevice(File& file, File::FileFlags flags) :
|
|||
|
||||
if (!_file.isValid())
|
||||
{
|
||||
throw new Exception(__METHOD__ ": Invalid file handle.");
|
||||
throw Exception(__METHOD__ ": Invalid file handle.");
|
||||
}
|
||||
|
||||
_readOnly = flags == File::ReadOnly;
|
||||
|
|
|
@ -262,7 +262,7 @@ void VolumeEntry::init(void *vp)
|
|||
|
||||
// verify filenamelength <= 7
|
||||
if (_fileNameLength > 7)
|
||||
throw new ProDOSException(__METHOD__ ": invalid name length", ProFUSE::badPathSyntax);
|
||||
throw ProDOSException(__METHOD__ ": invalid name length", ProFUSE::badPathSyntax);
|
||||
|
||||
// verify fileKind == 0
|
||||
// verify _fileCount reasonable
|
||||
|
|
Loading…
Reference in New Issue